serial: Prefer unsigned int to bare use of unsigned
authorJinchao Wang <wjc@cdjrlc.com>
Thu, 24 Jun 2021 02:12:07 +0000 (10:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jun 2021 12:51:45 +0000 (14:51 +0200)
Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
Link: https://lore.kernel.org/r/20210624021207.58059-1-wjc@cdjrlc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c
drivers/tty/serial/xilinx_uartps.c

index 51b0ecabf2ec963ffefcd33999b08f1d9830931e..04c41689d81c9d0eefb2a61eb4c8c99ff31fccc9 100644 (file)
@@ -617,7 +617,7 @@ static void mvebu_uart_putc(struct uart_port *port, int c)
 
 static void mvebu_uart_putc_early_write(struct console *con,
                                        const char *s,
-                                       unsigned n)
+                                       unsigned int n)
 {
        struct earlycon_device *dev = con->data;
 
index bafdf75c1fa802666e70d0378625208b298cf9b9..962e522ccc45cc860be992a307d66d84eeb08501 100644 (file)
@@ -1149,7 +1149,7 @@ static void cdns_uart_console_putchar(struct uart_port *port, int ch)
 }
 
 static void cdns_early_write(struct console *con, const char *s,
-                                   unsigned n)
+                                   unsigned int n)
 {
        struct earlycon_device *dev = con->data;