serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
PATCH 1/1 serial: 8250_port: Assign UPIO_UNKNOWN instead of its direct value
serial8250_init_port() assings 0xFF for the unset or unknown port IO type, use predefined constant for that instead.
--- drivers/tty/serial/8250/8250_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/8250/8250_port.c +1 -1
@@ -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);
Signature · 1 line
2.43.0.rc1.1336.g36b5255a03ac
Quoted 4 lines · Andy Shevchenko
serial8250_init_port()assings0xFFfor the unset or unknown port IO type, use predefined constant for that instead.Signed-off-by Andy Shevchenko <[email protected]>
I already thought about sending the same thing, but was going to wait until we have found a solution to the !CONFIG_HAS_IOPORT warning.
Arnd
Quoted 7 lines · Arnd Bergmann
Quoted 4 lines · Andy Shevchenko
serial8250_init_port()assings0xFFfor the unset or unknown port IO type, use predefined constant for that instead.Signed-off-by Andy Shevchenko <[email protected]>Acked-by Arnd Bergmann <[email protected]>
Thank you!
Quoted 3 lines
I already thought about sending the same thing, but was going to wait until we have found a solution to the !CONFIG_HAS_IOPORT warning.
But it seems orthogonal to that... The solution in any case will be more verbose and intrusive than this one-liner, I think.
Signature · 2 lines
With Best Regards, Andy Shevchenko