Skip to content

Commit

Permalink
drivers: tty: serial: uartlite: fix use fix 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>
  • Loading branch information
metux committed Feb 8, 2021
1 parent 5e32865 commit b127f53
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 @@ -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)))
;
Expand All @@ -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);
Expand Down

0 comments on commit b127f53

Please sign in to comment.