* [PATCH] mcp23s08: check read_regs() retval
@ 2008-04-17 4:08 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-04-17 4:08 UTC (permalink / raw)
To: dbrownell, spi-devel-general, lkml
The return value of mcp23s08_read_regs() can only be evaluated when signed
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/gpio/mcp23s08.c b/drivers/gpio/mcp23s08.c
index bb60e8c..0eef8b8 100644
--- a/drivers/gpio/mcp23s08.c
+++ b/drivers/gpio/mcp23s08.c
@@ -168,7 +168,7 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
{
struct mcp23s08 *mcp;
char bank;
- unsigned t;
+ int t;
unsigned mask;
mcp = container_of(chip, struct mcp23s08, chip);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-17 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 4:08 [PATCH] mcp23s08: check read_regs() retval Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox