From: Ilpo Järvinen Date: Fri, 25 Nov 2022 13:05:09 +0000 (+0200) Subject: serial: 8250_early: Convert literals to use defines X-Git-Tag: v6.6.17~5456^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8573b2ebcea3f16680ba294bad1478eecc5de601;p=platform%2Fkernel%2Flinux-rpi.git serial: 8250_early: Convert literals to use defines Use existing defines for the serial register values in 8250_early. Signed-off-by: Ilpo Järvinen Link: https://lore.kernel.org/r/20221125130509.8482-7-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c index f271bec..0ebde0a 100644 --- a/drivers/tty/serial/8250/8250_early.c +++ b/drivers/tty/serial/8250/8250_early.c @@ -136,11 +136,11 @@ static void __init init_port(struct earlycon_device *device) unsigned char c; unsigned int ier; - serial8250_early_out(port, UART_LCR, 0x3); /* 8n1 */ + serial8250_early_out(port, UART_LCR, UART_LCR_WLEN8); /* 8n1 */ ier = serial8250_early_in(port, UART_IER); serial8250_early_out(port, UART_IER, ier & UART_IER_UUE); /* no interrupt */ serial8250_early_out(port, UART_FCR, 0); /* no fifo */ - serial8250_early_out(port, UART_MCR, 0x3); /* DTR + RTS */ + serial8250_early_out(port, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); if (port->uartclk) { divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud);