diff options
| -rw-r--r-- | drivers/usb/serial/pl2303.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 1e6de4cd079d..1e3318dfa1cb 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
| @@ -361,23 +361,21 @@ static void pl2303_set_termios(struct tty_struct *tty, | |||
| 361 | 0, 0, buf, 7, 100); | 361 | 0, 0, buf, 7, 100); |
| 362 | dev_dbg(&port->dev, "0xa1:0x21:0:0 %d - %7ph\n", i, buf); | 362 | dev_dbg(&port->dev, "0xa1:0x21:0:0 %d - %7ph\n", i, buf); |
| 363 | 363 | ||
| 364 | if (C_CSIZE(tty)) { | 364 | switch (C_CSIZE(tty)) { |
| 365 | switch (C_CSIZE(tty)) { | 365 | case CS5: |
| 366 | case CS5: | 366 | buf[6] = 5; |
| 367 | buf[6] = 5; | 367 | break; |
| 368 | break; | 368 | case CS6: |
| 369 | case CS6: | 369 | buf[6] = 6; |
| 370 | buf[6] = 6; | 370 | break; |
| 371 | break; | 371 | case CS7: |
| 372 | case CS7: | 372 | buf[6] = 7; |
| 373 | buf[6] = 7; | 373 | break; |
| 374 | break; | 374 | default: |
| 375 | default: | 375 | case CS8: |
| 376 | case CS8: | 376 | buf[6] = 8; |
| 377 | buf[6] = 8; | ||
| 378 | } | ||
| 379 | dev_dbg(&port->dev, "data bits = %d\n", buf[6]); | ||
| 380 | } | 377 | } |
| 378 | dev_dbg(&port->dev, "data bits = %d\n", buf[6]); | ||
| 381 | 379 | ||
| 382 | /* For reference buf[0]:buf[3] baud rate value */ | 380 | /* For reference buf[0]:buf[3] baud rate value */ |
| 383 | pl2303_encode_baudrate(tty, port, &buf[0]); | 381 | pl2303_encode_baudrate(tty, port, &buf[0]); |
