2007-11-21 11:34:19

by Andre Haupt

[permalink] [raw]
Subject: [PATCH] sdio_uart: fix sign of paramter status in sdio_uart_receive_chars()

I think, the status paramter should be unsigned. Is this correct?
This also fixes a sparse warning about different signedness.
Only compile tested, because i do not have the hardware.

From: Andre Haupt <[email protected]>
Signed-off-by: Andre Haupt <[email protected]>
---
drivers/mmc/card/sdio_uart.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c
index d552de6..eeea84c 100644
--- a/drivers/mmc/card/sdio_uart.c
+++ b/drivers/mmc/card/sdio_uart.c
@@ -386,7 +386,7 @@ static void sdio_uart_stop_rx(struct sdio_uart_port *port)
sdio_out(port, UART_IER, port->ier);
}

-static void sdio_uart_receive_chars(struct sdio_uart_port *port, int *status)
+static void sdio_uart_receive_chars(struct sdio_uart_port *port, unsigned int *status)
{
struct tty_struct *tty = port->tty;
unsigned int ch, flag;
--
1.4.4.4


2007-11-24 14:37:03

by Pierre Ossman

[permalink] [raw]
Subject: Re: [PATCH] sdio_uart: fix sign of paramter status in sdio_uart_receive_chars()

On Wed, 21 Nov 2007 12:33:45 +0100
Andre Haupt <[email protected]> wrote:

> I think, the status paramter should be unsigned. Is this correct?
> This also fixes a sparse warning about different signedness.
> Only compile tested, because i do not have the hardware.
>
> From: Andre Haupt <[email protected]>
> Signed-off-by: Andre Haupt <[email protected]>

Nicolas, does this seem correct to you? I'm not familiar with the serial stuff.

Rgds
--
-- Pierre Ossman

Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org

2007-11-24 15:36:17

by Nicolas Pitre

[permalink] [raw]
Subject: Re: [PATCH] sdio_uart: fix sign of paramter status in sdio_uart_receive_chars()

On Sat, 24 Nov 2007, Pierre Ossman wrote:

> On Wed, 21 Nov 2007 12:33:45 +0100
> Andre Haupt <[email protected]> wrote:
>
> > I think, the status paramter should be unsigned. Is this correct?
> > This also fixes a sparse warning about different signedness.
> > Only compile tested, because i do not have the hardware.
> >
> > From: Andre Haupt <[email protected]>
> > Signed-off-by: Andre Haupt <[email protected]>
>
> Nicolas, does this seem correct to you? I'm not familiar with the
> serial stuff.

Yes, that should be fine.

Acked-by: Nicolas Pitre <[email protected]>


Nicolas