Skip to content

Commit 78b95d8

Browse files
committed
drivers: tty: serial: uartlite: fix use fix bare 'unsigned'
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 <[email protected]>
1 parent fc16d9a commit 78b95d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/uartlite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static void early_uartlite_putc(struct uart_port *port, int c)
559559
* we'll never timeout on a working UART.
560560
*/
561561

562-
unsigned retries = 1000000;
562+
unsigned int retries = 1000000;
563563
/* read status bit - 0x8 offset */
564564
while (--retries && (readl(port->membase + 8) & (1 << 3)))
565565
;
@@ -571,7 +571,7 @@ static void early_uartlite_putc(struct uart_port *port, int c)
571571
}
572572

573573
static void early_uartlite_write(struct console *console,
574-
const char *s, unsigned n)
574+
const char *s, unsigned int n)
575575
{
576576
struct earlycon_device *device = console->data;
577577
uart_console_write(&device->port, s, n, early_uartlite_putc);

0 commit comments

Comments
 (0)