Skip to content

Commit

Permalink
USB: ftdi_sio: remove support for 5 and 6 data bits
Browse files Browse the repository at this point in the history
Removed CS5 and CS6 from data bits since these are not supported
in FTDI hardware.


Signed-off-by: Mark J. Adamson <mark.adamson@ftdichip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mark Adamson authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 8c4f99c commit cabe6cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2246,12 +2246,10 @@ static void ftdi_set_termios(struct tty_struct *tty,
}
if (cflag & CSIZE) {
switch (cflag & CSIZE) {
case CS5: urb_value |= 5; dbg("Setting CS5"); break;
case CS6: urb_value |= 6; dbg("Setting CS6"); break;
case CS7: urb_value |= 7; dbg("Setting CS7"); break;
case CS8: urb_value |= 8; dbg("Setting CS8"); break;
default:
dev_err(&port->dev, "CSIZE was set but not CS5-CS8\n");
dev_err(&port->dev, "CSIZE was set but not CS7-CS8\n");
}
}

Expand Down

0 comments on commit cabe6cc

Please sign in to comment.