diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-06-24 14:48:22 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-06-24 14:48:22 -0400 |
commit | 0a8b80c52f44a6e84206618a8a450ba13a5809dc (patch) | |
tree | 0ac9a71b3820e6d5876266aa50fa55abcfc5bf5d /drivers/serial/m32r_sio.c | |
parent | 59a49e38711a146dc0bef4837c825b5422335460 (diff) |
[PATCH] Serial: Eliminate magic numbers
Use the existing macros instead.
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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)) |