From 274b7986bee7acba4c880da68b83cdc0affd2764 Mon Sep 17 00:00:00 2001 From: "Anton D. Kachalov" Date: Fri, 31 Jul 2015 20:19:54 +0300 Subject: [PATCH] [drivers/serial/uart_16550] Typo fix in data bits setup Signed-off-by: Anton D. Kachalov --- drivers/serial/uart_16550.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index 0a471400fe5..c88ea2b1af7 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -590,11 +590,11 @@ static int u16550_setup(struct uart_dev_s *dev) switch (priv->bits) { case 5 : - lcr |= UART_LCR_WLS_7BIT; + lcr |= UART_LCR_WLS_5BIT; break; case 6 : - lcr |= UART_LCR_WLS_7BIT; + lcr |= UART_LCR_WLS_6BIT; break; case 7 : @@ -603,7 +603,7 @@ static int u16550_setup(struct uart_dev_s *dev) default: case 8 : - lcr |= UART_LCR_WLS_7BIT; + lcr |= UART_LCR_WLS_8BIT; break; }