Skip to content

Commit c2b3355

Browse files
committed
USB: serial: cp210x: clean up CSIZE handling
CSIZE is two-bit wide and only CS5 through CS8 are possible values. Signed-off-by: Johan Hovold <[email protected]>
1 parent 07d9a38 commit c2b3355

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/usb/serial/cp210x.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -929,16 +929,9 @@ static void cp210x_set_termios(struct tty_struct *tty,
929929
dev_dbg(dev, "%s - data bits = 7\n", __func__);
930930
break;
931931
case CS8:
932-
bits |= BITS_DATA_8;
933-
dev_dbg(dev, "%s - data bits = 8\n", __func__);
934-
break;
935-
/*case CS9:
936-
bits |= BITS_DATA_9;
937-
dev_dbg(dev, "%s - data bits = 9\n", __func__);
938-
break;*/
939932
default:
940-
dev_dbg(dev, "cp210x driver does not support the number of bits requested, using 8 bit mode\n");
941933
bits |= BITS_DATA_8;
934+
dev_dbg(dev, "%s - data bits = 8\n", __func__);
942935
break;
943936
}
944937
if (cp210x_write_u16_reg(port, CP210X_SET_LINE_CTL, bits))

0 commit comments

Comments
 (0)