summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2011-12-09 18:07:13 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-09 19:06:42 -0800
commit7d73aaf1d45d9bd95638680361db4d019ebb75bb (patch)
treeb63c136af5ad174baeda722cb6662cbbe8d1df73
parentcee3948d126d30341e08e935d3cc3e380088a2e8 (diff)
downloadlwn-7d73aaf1d45d9bd95638680361db4d019ebb75bb.tar.gz
lwn-7d73aaf1d45d9bd95638680361db4d019ebb75bb.zip
serial: 8250: replace hardcoded 0xbf with #define
Makes it easier to find all occurences requesting CONF_MODE_B. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/tty/serial/8250.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c
index 3a8e5bfe17e2..580d12c898cf 100644
--- a/drivers/tty/serial/8250.c
+++ b/drivers/tty/serial/8250.c
@@ -2002,7 +2002,7 @@ static int serial8250_startup(struct uart_port *port)
serial_outp(up, UART_IER, 0);
serial_outp(up, UART_LCR, 0);
serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
- serial_outp(up, UART_LCR, 0xBF);
+ serial_outp(up, UART_LCR, UART_LCR_CONF_MODE_B);
serial_outp(up, UART_EFR, UART_EFR_ECB);
serial_outp(up, UART_LCR, 0);
}