Skip to content

Commit 663fc15

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 b977932 commit 663fc15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/uartlite.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static void early_uartlite_putc(struct uart_port *port, int c)
556556
* we'll never timeout on a working UART.
557557
*/
558558

559-
unsigned retries = 1000000;
559+
unsigned int retries = 1000000;
560560
/* read status bit - 0x8 offset */
561561
while (--retries && (readl(port->membase + 8) & (1 << 3)))
562562
;
@@ -568,7 +568,7 @@ static void early_uartlite_putc(struct uart_port *port, int c)
568568
}
569569

570570
static void early_uartlite_write(struct console *console,
571-
const char *s, unsigned n)
571+
const char *s, unsigned int n)
572572
{
573573
struct earlycon_device *device = console->data;
574574
uart_console_write(&device->port, s, n, early_uartlite_putc);

0 commit comments

Comments
 (0)