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/m32r_sio.c | |
parent | f647a27417d2adc43d8c96d3d6f837422fbc076e (diff) | |
parent | 0a8b80c52f44a6e84206618a8a450ba13a5809dc (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-serial
Diffstat (limited to 'drivers/serial/m32r_sio.c')
-rw-r--r-- | drivers/serial/m32r_sio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/m32r_sio.c b/drivers/serial/m32r_sio.c index 08d61f13edc6..0301feacbde4 100644 --- a/drivers/serial/m32r_sio.c +++ b/drivers/serial/m32r_sio.c | |||
@@ -724,22 +724,22 @@ static void m32r_sio_set_termios(struct uart_port *port, | |||
724 | 724 | ||
725 | switch (termios->c_cflag & CSIZE) { | 725 | switch (termios->c_cflag & CSIZE) { |
726 | case CS5: | 726 | case CS5: |
727 | cval = 0x00; | 727 | cval = UART_LCR_WLEN5; |
728 | break; | 728 | break; |
729 | case CS6: | 729 | case CS6: |
730 | cval = 0x01; | 730 | cval = UART_LCR_WLEN6; |
731 | break; | 731 | break; |
732 | case CS7: | 732 | case CS7: |
733 | cval = 0x02; | 733 | cval = UART_LCR_WLEN7; |
734 | break; | 734 | break; |
735 | default: | 735 | default: |
736 | case CS8: | 736 | case CS8: |
737 | cval = 0x03; | 737 | cval = UART_LCR_WLEN8; |
738 | break; | 738 | break; |
739 | } | 739 | } |
740 | 740 | ||
741 | if (termios->c_cflag & CSTOPB) | 741 | if (termios->c_cflag & CSTOPB) |
742 | cval |= 0x04; | 742 | cval |= UART_LCR_STOP; |
743 | if (termios->c_cflag & PARENB) | 743 | if (termios->c_cflag & PARENB) |
744 | cval |= UART_LCR_PARITY; | 744 | cval |= UART_LCR_PARITY; |
745 | if (!(termios->c_cflag & PARODD)) | 745 | if (!(termios->c_cflag & PARODD)) |