serial: make uart_insert_char() accept u8s
authorJiri Slaby <jirislaby@kernel.org>
Wed, 12 Jul 2023 08:18:07 +0000 (10:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jul 2023 17:21:03 +0000 (19:21 +0200)
Both the character and flag are 8-bit values. So switch from unsigned
ints to u8s. The drivers will be cleaned up in the next round.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230712081811.29004-7-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h

index 7e37db9adbd4617cac9fa432750fcf6ad2c89942..bef507cb804c31ca534de7b709802f6da5ebbd12 100644 (file)
@@ -3486,7 +3486,7 @@ EXPORT_SYMBOL_GPL(uart_handle_cts_change);
  * @flag: flag for the character (see TTY_NORMAL and friends)
  */
 void uart_insert_char(struct uart_port *port, unsigned int status,
-                unsigned int overrun, unsigned int ch, unsigned int flag)
+                     unsigned int overrun, u8 ch, u8 flag)
 {
        struct tty_port *tport = &port->state->port;
 
index 14dd85ee849edf3b336696010bebdf0849aef34b..105d2cdc0126c3e480933f7580b37d6a71f851ed 100644 (file)
@@ -903,7 +903,7 @@ void uart_handle_dcd_change(struct uart_port *uport, bool active);
 void uart_handle_cts_change(struct uart_port *uport, bool active);
 
 void uart_insert_char(struct uart_port *port, unsigned int status,
-                     unsigned int overrun, unsigned int ch, unsigned int flag);
+                     unsigned int overrun, u8 ch, u8 flag);
 
 void uart_xchar_out(struct uart_port *uport, int offset);