diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 18:33:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 18:33:30 -0400 |
| commit | b3e112bcc19abd8e9657dca34a87316786e096f3 (patch) | |
| tree | 39040c7a05edd69381c0a25636a1a328d856cb9c /drivers/serial/au1x00_uart.c | |
| parent | f647a27417d2adc43d8c96d3d6f837422fbc076e (diff) | |
| parent | 0a8b80c52f44a6e84206618a8a450ba13a5809dc (diff) | |
Merge master.kernel.org:/home/rmk/linux-2.6-serial
Diffstat (limited to 'drivers/serial/au1x00_uart.c')
| -rw-r--r-- | drivers/serial/au1x00_uart.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/au1x00_uart.c b/drivers/serial/au1x00_uart.c index b6d3d5034940..5400dc2c087e 100644 --- a/drivers/serial/au1x00_uart.c +++ b/drivers/serial/au1x00_uart.c | |||
| @@ -773,22 +773,22 @@ serial8250_set_termios(struct uart_port *port, struct termios *termios, | |||
| 773 | 773 | ||
| 774 | switch (termios->c_cflag & CSIZE) { | 774 | switch (termios->c_cflag & CSIZE) { |
| 775 | case CS5: | 775 | case CS5: |
| 776 | cval = 0x00; | 776 | cval = UART_LCR_WLEN5; |
| 777 | break; | 777 | break; |
| 778 | case CS6: | 778 | case CS6: |
| 779 | cval = 0x01; | 779 | cval = UART_LCR_WLEN6; |
| 780 | break; | 780 | break; |
| 781 | case CS7: | 781 | case CS7: |
| 782 | cval = 0x02; | 782 | cval = UART_LCR_WLEN7; |
| 783 | break; | 783 | break; |
| 784 | default: | 784 | default: |
| 785 | case CS8: | 785 | case CS8: |
| 786 | cval = 0x03; | 786 | cval = UART_LCR_WLEN8; |
| 787 | break; | 787 | break; |
| 788 | } | 788 | } |
| 789 | 789 | ||
| 790 | if (termios->c_cflag & CSTOPB) | 790 | if (termios->c_cflag & CSTOPB) |
| 791 | cval |= 0x04; | 791 | cval |= UART_LCR_STOP; |
| 792 | if (termios->c_cflag & PARENB) | 792 | if (termios->c_cflag & PARENB) |
| 793 | cval |= UART_LCR_PARITY; | 793 | cval |= UART_LCR_PARITY; |
| 794 | if (!(termios->c_cflag & PARODD)) | 794 | if (!(termios->c_cflag & PARODD)) |
