[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAfSe-uuYbF+4cxvJNxsazDVhF4LKFLBCzWzkp6GKjCmyKc80A@mail.gmail.com>
Date: Tue, 4 Sep 2018 14:55:39 +0800
From: Chunyan Zhang <zhang.lyra@...il.com>
To: Baolin Wang <baolin.wang@...aro.org>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, jslaby@...e.com,
Orson Zhai <orsonzhai@...il.com>,
Mark Brown <broonie@...nel.org>, linux-serial@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4/5] serial: sprd: Change 'int' to 'unsigned int'
On 11 August 2018 at 09:34, Baolin Wang <baolin.wang@...aro.org> wrote:
> The register offset value should be 'unsigned int' type.
>
> Moreover, prefer 'unsigned int' to bare use of 'unsigned'.
>
> Signed-off-by: Baolin Wang <baolin.wang@...aro.org>
Acked-by: Chunyan Zhang <chunyan.zhang@...eadtrum.com>
> ---
> drivers/tty/serial/sprd_serial.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
> index 03b0cd4..8d5c9cd 100644
> --- a/drivers/tty/serial/sprd_serial.c
> +++ b/drivers/tty/serial/sprd_serial.c
> @@ -109,12 +109,14 @@ struct sprd_uart_port {
> static struct sprd_uart_port *sprd_port[UART_NR_MAX];
> 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);
> }
>
> -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);
> }
> @@ -598,8 +600,7 @@ static void sprd_putc(struct uart_port *port, int c)
> writeb(c, port->membase + SPRD_TXD);
> }
>
> -static void sprd_early_write(struct console *con, const char *s,
> - unsigned n)
> +static void sprd_early_write(struct console *con, const char *s, unsigned int n)
> {
> struct earlycon_device *dev = con->data;
>
> --
> 1.9.1
>
Powered by blists - more mailing lists