Skip to content

Commit

Permalink
drivers: tty: serial: uartlite: fix use of bare 'unsigned'
Browse files Browse the repository at this point in the history
Fix checkpatch warnings:

    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    torvalds#562: FILE: drivers/tty/serial/uartlite.c:562:
    +	unsigned retries = 1000000;

    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
    torvalds#574: FILE: drivers/tty/serial/uartlite.c:574:
    +				 const char *s, unsigned n)

Signed-off-by: Enrico Weigelt <info@metux.net>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
  • Loading branch information
metux committed Apr 30, 2019
1 parent d2fb68f commit f3dc2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/serial/uartlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,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)))
;
Expand All @@ -571,7 +571,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);
Expand Down

0 comments on commit f3dc2b5

Please sign in to comment.