Message ID | 1621303038-12062-12-git-send-email-f.fangjian@huawei.com |
---|---|
State | New |
Headers | show |
Series | tty: serial: Fix some coding style issues | expand |
diff --git a/drivers/tty/serial/earlycon-arm-semihost.c b/drivers/tty/serial/earlycon-arm-semihost.c index fa096c1..3db23c3 100644 --- a/drivers/tty/serial/earlycon-arm-semihost.c +++ b/drivers/tty/serial/earlycon-arm-semihost.c @@ -36,9 +36,10 @@ static void smh_putc(struct uart_port *port, int c) #endif } -static void smh_write(struct console *con, const char *s, unsigned n) +static void smh_write(struct console *con, const char *s, unsigned int n) { struct earlycon_device *dev = con->data; + uart_console_write(&dev->port, s, n, smh_putc); }