Commit dd22161e authored by Baolin Wang's avatar Baolin Wang Committed by Greg Kroah-Hartman

serial: sprd: Change 'int' to 'unsigned int'

The register offset value should be 'unsigned int' type.

Moreover, prefer 'unsigned int' to bare use of 'unsigned'.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Acked-by: default avatarChunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 262d3dc0
...@@ -109,12 +109,14 @@ struct sprd_uart_port { ...@@ -109,12 +109,14 @@ struct sprd_uart_port {
static struct sprd_uart_port *sprd_port[UART_NR_MAX]; static struct sprd_uart_port *sprd_port[UART_NR_MAX];
static int sprd_ports_num; static int sprd_ports_num;
static inline unsigned int serial_in(struct uart_port *port, int offset) static inline unsigned int serial_in(struct uart_port *port,
unsigned int offset)
{ {
return readl_relaxed(port->membase + offset); return readl_relaxed(port->membase + offset);
} }
static inline void serial_out(struct uart_port *port, int offset, int value) static inline void serial_out(struct uart_port *port, unsigned int offset,
int value)
{ {
writel_relaxed(value, port->membase + offset); writel_relaxed(value, port->membase + offset);
} }
...@@ -598,8 +600,7 @@ static void sprd_putc(struct uart_port *port, int c) ...@@ -598,8 +600,7 @@ static void sprd_putc(struct uart_port *port, int c)
writeb(c, port->membase + SPRD_TXD); writeb(c, port->membase + SPRD_TXD);
} }
static void sprd_early_write(struct console *con, const char *s, static void sprd_early_write(struct console *con, const char *s, unsigned int n)
unsigned n)
{ {
struct earlycon_device *dev = con->data; struct earlycon_device *dev = con->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment