diff options
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 79f67fd863ec..d8b9d2b8c200 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -1682,22 +1682,22 @@ serial8250_set_termios(struct uart_port *port, struct termios *termios, | |||
1682 | 1682 | ||
1683 | switch (termios->c_cflag & CSIZE) { | 1683 | switch (termios->c_cflag & CSIZE) { |
1684 | case CS5: | 1684 | case CS5: |
1685 | cval = 0x00; | 1685 | cval = UART_LCR_WLEN5; |
1686 | break; | 1686 | break; |
1687 | case CS6: | 1687 | case CS6: |
1688 | cval = 0x01; | 1688 | cval = UART_LCR_WLEN6; |
1689 | break; | 1689 | break; |
1690 | case CS7: | 1690 | case CS7: |
1691 | cval = 0x02; | 1691 | cval = UART_LCR_WLEN7; |
1692 | break; | 1692 | break; |
1693 | default: | 1693 | default: |
1694 | case CS8: | 1694 | case CS8: |
1695 | cval = 0x03; | 1695 | cval = UART_LCR_WLEN8; |
1696 | break; | 1696 | break; |
1697 | } | 1697 | } |
1698 | 1698 | ||
1699 | if (termios->c_cflag & CSTOPB) | 1699 | if (termios->c_cflag & CSTOPB) |
1700 | cval |= 0x04; | 1700 | cval |= UART_LCR_STOP; |
1701 | if (termios->c_cflag & PARENB) | 1701 | if (termios->c_cflag & PARENB) |
1702 | cval |= UART_LCR_PARITY; | 1702 | cval |= UART_LCR_PARITY; |
1703 | if (!(termios->c_cflag & PARODD)) | 1703 | if (!(termios->c_cflag & PARODD)) |