summaryrefslogtreecommitdiff
path: root/drivers/serial/au1x00_uart.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-06-24 19:48:22 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-06-24 19:48:22 +0100
commit0a8b80c52f44a6e84206618a8a450ba13a5809dc (patch)
tree0ac9a71b3820e6d5876266aa50fa55abcfc5bf5d /drivers/serial/au1x00_uart.c
parent59a49e38711a146dc0bef4837c825b5422335460 (diff)
downloadlwn-0a8b80c52f44a6e84206618a8a450ba13a5809dc.tar.gz
lwn-0a8b80c52f44a6e84206618a8a450ba13a5809dc.zip
[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/au1x00_uart.c')
-rw-r--r--drivers/serial/au1x00_uart.c10
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,
switch (termios->c_cflag & CSIZE) {
case CS5:
- cval = 0x00;
+ cval = UART_LCR_WLEN5;
break;
case CS6:
- cval = 0x01;
+ cval = UART_LCR_WLEN6;
break;
case CS7:
- cval = 0x02;
+ cval = UART_LCR_WLEN7;
break;
default:
case CS8:
- cval = 0x03;
+ cval = UART_LCR_WLEN8;
break;
}
if (termios->c_cflag & CSTOPB)
- cval |= 0x04;
+ cval |= UART_LCR_STOP;
if (termios->c_cflag & PARENB)
cval |= UART_LCR_PARITY;
if (!(termios->c_cflag & PARODD))