diff mbox series

[11/11] tty: serial: earlycon-arm-semihost : Fix some coding style issuses

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

Commit Message

Jay Fang May 18, 2021, 1:57 a.m. UTC
From: Zihao Tang <tangzihao1@hisilicon.com>

Fix the following checkpatch warnings:

  WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
  #39: FILE: ./drivers/tty/serial/earlycon-arm-semihost.c:39:
  +static void smh_write(struct console *con, const char *s, unsigned n)

  WARNING: Missing a blank line after declarations
  #42: FILE: ./drivers/tty/serial/earlycon-arm-semihost.c:42:
  +	struct earlycon_device *dev = con->data;
  +	uart_console_write(&dev->port, s, n, smh_putc);

Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
---
 drivers/tty/serial/earlycon-arm-semihost.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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);
 }