From: Ilpo Järvinen Date: Mon, 13 Jun 2022 07:57:36 +0000 (+0300) Subject: serial: 8250_pericom: Use UART_LCR_DLAB X-Git-Tag: baikal/mips/sdk6.1~5078^2~81 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=cdeb96e9c28f6a461ff372f923078ca32f0601e3;p=kernel.git serial: 8250_pericom: Use UART_LCR_DLAB Use UART_LCR_DLAB instead of literal. Reviewed-by: Jiri Slaby Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20220613075736.12283-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_pericom.c b/drivers/tty/serial/8250/8250_pericom.c index 95ff10f25d58a..b8d5b7714a9dd 100644 --- a/drivers/tty/serial/8250/8250_pericom.c +++ b/drivers/tty/serial/8250/8250_pericom.c @@ -73,7 +73,7 @@ static void pericom_do_set_divisor(struct uart_port *port, unsigned int baud, struct uart_8250_port *up = up_to_u8250p(port); int lcr = serial_port_in(port, UART_LCR); - serial_port_out(port, UART_LCR, lcr | 0x80); + serial_port_out(port, UART_LCR, lcr | UART_LCR_DLAB); serial_dl_write(up, divisor); serial_port_out(port, 2, 16 - scr); serial_port_out(port, UART_LCR, lcr);