USB: mos7840: correct handling of CS5 setting

This patch removes an erroneous check of CSIZE, which made it impossible to set
CS5.

Compiles clean, but couldn't test against hardware.

Signed-off-by: Colin Leitner <colin.leitner@gmail.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Colin Leitner 2013-11-08 22:52:34 +01:00 committed by Greg Kroah-Hartman
parent 711fbdfbf2
commit 78692cc338

View File

@ -1813,25 +1813,25 @@ static void mos7840_change_port_settings(struct tty_struct *tty,
iflag = tty->termios.c_iflag; iflag = tty->termios.c_iflag;
/* Change the number of bits */ /* Change the number of bits */
if (cflag & CSIZE) { switch (cflag & CSIZE) {
switch (cflag & CSIZE) { case CS5:
case CS5: lData = LCR_BITS_5;
lData = LCR_BITS_5; break;
break;
case CS6: case CS6:
lData = LCR_BITS_6; lData = LCR_BITS_6;
break; break;
case CS7: case CS7:
lData = LCR_BITS_7; lData = LCR_BITS_7;
break; break;
default:
case CS8: default:
lData = LCR_BITS_8; case CS8:
break; lData = LCR_BITS_8;
} break;
} }
/* Change the Parity bit */ /* Change the Parity bit */
if (cflag & PARENB) { if (cflag & PARENB) {
if (cflag & PARODD) { if (cflag & PARODD) {