summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2008-05-23 22:04:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-24 18:56:11 +0200
commit1d1c1d9b557a12320174058d2d313ffb0f8611f4 (patch)
treeba4d9c9c1a32ae0ccf85c6c1787a79f19856d150 /drivers
parentgpio: pca953x driver handles pca9554 too (diff)
downloadlinux-1d1c1d9b557a12320174058d2d313ffb0f8611f4.tar.xz
linux-1d1c1d9b557a12320174058d2d313ffb0f8611f4.zip
gpio: mcp23s08 debug fix
The return value of mcp23s08_read_regs() can only be evaluated when signed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/mcp23s08.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/mcp23s08.c b/drivers/gpio/mcp23s08.c
index 7fb5b9d009d4..7f92fdd5f0e2 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);