Updated from Linux LTS 3.10.23 to 3.10.24
This commit is contained in:
@@ -1875,25 +1875,25 @@ static void mos7840_change_port_settings(struct tty_struct *tty,
|
||||
iflag = tty->termios.c_iflag;
|
||||
|
||||
/* Change the number of bits */
|
||||
if (cflag & CSIZE) {
|
||||
switch (cflag & CSIZE) {
|
||||
case CS5:
|
||||
lData = LCR_BITS_5;
|
||||
break;
|
||||
switch (cflag & CSIZE) {
|
||||
case CS5:
|
||||
lData = LCR_BITS_5;
|
||||
break;
|
||||
|
||||
case CS6:
|
||||
lData = LCR_BITS_6;
|
||||
break;
|
||||
case CS6:
|
||||
lData = LCR_BITS_6;
|
||||
break;
|
||||
|
||||
case CS7:
|
||||
lData = LCR_BITS_7;
|
||||
break;
|
||||
default:
|
||||
case CS8:
|
||||
lData = LCR_BITS_8;
|
||||
break;
|
||||
}
|
||||
case CS7:
|
||||
lData = LCR_BITS_7;
|
||||
break;
|
||||
|
||||
default:
|
||||
case CS8:
|
||||
lData = LCR_BITS_8;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Change the Parity bit */
|
||||
if (cflag & PARENB) {
|
||||
if (cflag & PARODD) {
|
||||
|
||||
Reference in New Issue
Block a user