From b127f53000f6b2bb77e461ab418f80474fb4dc35 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 18 Apr 2019 18:27:36 +0200 Subject: [PATCH] drivers: tty: serial: uartlite: fix use fix bare 'unsigned' Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #562: FILE: drivers/tty/serial/uartlite.c:562: + unsigned retries = 1000000; WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #574: FILE: drivers/tty/serial/uartlite.c:574: + const char *s, unsigned n) Signed-off-by: Enrico Weigelt --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index b5e5c7461f9bd0..eeb4b5d3e73d81 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -556,7 +556,7 @@ static void early_uartlite_putc(struct uart_port *port, int c) * we'll never timeout on a working UART. */ - unsigned retries = 1000000; + unsigned int retries = 1000000; /* read status bit - 0x8 offset */ while (--retries && (readl(port->membase + 8) & (1 << 3))) ; @@ -568,7 +568,7 @@ static void early_uartlite_putc(struct uart_port *port, int c) } static void early_uartlite_write(struct console *console, - const char *s, unsigned n) + const char *s, unsigned int n) { struct earlycon_device *device = console->data; uart_console_write(&device->port, s, n, early_uartlite_putc);