Skip to contentSkip to conversation

gpio: mcp23s08 debug fix

PATCH New David Brownell 1 participant 1 message May 18, 2008 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: mcp23s08 debug fix

From: Roel Kluin <[email protected]>

The return value of mcp23s08_read_regs() can only be evaluated when signed

drivers/gpio/mcp23s08.c +1 -1
@@ -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);