diff mbox series

[v1,1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value

Message ID 20241125103305.1614986-1-andriy.shevchenko@linux.intel.com
State New
Headers show
Series [v1,1/1] serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value | expand

Commit Message

Andy Shevchenko Nov. 25, 2024, 10:33 a.m. UTC
serial8250_init_port() assings 0xFF for the unset or unknown port
IO type, use predefined constant for that instead.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/tty/serial/8250/8250_port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 4d63d80e78a9..1003516097df 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -3249,7 +3249,7 @@  void serial8250_init_port(struct uart_8250_port *up)
 	port->ops = &serial8250_pops;
 	port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);
 
-	up->cur_iotype = 0xFF;
+	up->cur_iotype = UPIO_UNKNOWN;
 }
 EXPORT_SYMBOL_GPL(serial8250_init_port);