diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2012-04-25 05:51:53 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-05-18 18:48:35 -0400 |
commit | eb1567f7ad0032ba7b02b878e352f191d53dc228 (patch) | |
tree | 3d3cd8deddb3c5aa6fc1f57207dbed927d07e516 /drivers/gpio | |
parent | ae79c19049b75af476adcbcfda6fc29bd93fc6f8 (diff) |
gpio-mcp23s08: dbg_show: fix pullup configuration display
Pullups are enabled when bits are set, not when cleared.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mcp23s08.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index c5d83a8a91c2..0f425189de11 100644 --- a/drivers/gpio/gpio-mcp23s08.c +++ b/drivers/gpio/gpio-mcp23s08.c | |||
@@ -353,7 +353,7 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip) | |||
353 | chip->base + t, bank, t, label, | 353 | chip->base + t, bank, t, label, |
354 | (mcp->cache[MCP_IODIR] & mask) ? "in " : "out", | 354 | (mcp->cache[MCP_IODIR] & mask) ? "in " : "out", |
355 | (mcp->cache[MCP_GPIO] & mask) ? "hi" : "lo", | 355 | (mcp->cache[MCP_GPIO] & mask) ? "hi" : "lo", |
356 | (mcp->cache[MCP_GPPU] & mask) ? " " : "up"); | 356 | (mcp->cache[MCP_GPPU] & mask) ? "up" : " "); |
357 | /* NOTE: ignoring the irq-related registers */ | 357 | /* NOTE: ignoring the irq-related registers */ |
358 | seq_printf(s, "\n"); | 358 | seq_printf(s, "\n"); |
359 | } | 359 | } |