diff mbox series

[10/11] tty: serial: dz: Use 'unsigned int' instead of 'unsigned'

Message ID 1621303038-12062-11-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 2 "WARNING: Prefer 'unsigned int' to bare use of 'unsigned'"
warnings reported by checkpatch.pl:

  WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
  #99: FILE: ./drivers/tty/serial/dz.c:99:
  +static u16 dz_in(struct dz_port *dport, unsigned offset)

  WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
  #106: FILE: ./drivers/tty/serial/dz.c:106:
  +static void dz_out(struct dz_port *dport, unsigned offset, u16 value)

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

Patch

diff --git a/drivers/tty/serial/dz.c b/drivers/tty/serial/dz.c
index 4552742..5ba26d2 100644
--- a/drivers/tty/serial/dz.c
+++ b/drivers/tty/serial/dz.c
@@ -96,14 +96,14 @@  static inline struct dz_port *to_dport(struct uart_port *uport)
  * ------------------------------------------------------------
  */
 
-static u16 dz_in(struct dz_port *dport, unsigned offset)
+static u16 dz_in(struct dz_port *dport, unsigned int offset)
 {
 	void __iomem *addr = dport->port.membase + offset;
 
 	return readw(addr);
 }
 
-static void dz_out(struct dz_port *dport, unsigned offset, u16 value)
+static void dz_out(struct dz_port *dport, unsigned int offset, u16 value)
 {
 	void __iomem *addr = dport->port.membase + offset;