summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mcp23s08.c
diff options
context:
space:
mode:
authorPeter Korsgaard2012-04-25 11:51:53 +0200
committerGrant Likely2012-05-19 00:48:35 +0200
commiteb1567f7ad0032ba7b02b878e352f191d53dc228 (patch)
tree3d3cd8deddb3c5aa6fc1f57207dbed927d07e516 /drivers/gpio/gpio-mcp23s08.c
parentAdd support for TCA6424A (diff)
downloadkernel-qcow2-linux-eb1567f7ad0032ba7b02b878e352f191d53dc228.tar.gz
kernel-qcow2-linux-eb1567f7ad0032ba7b02b878e352f191d53dc228.tar.xz
kernel-qcow2-linux-eb1567f7ad0032ba7b02b878e352f191d53dc228.zip
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/gpio-mcp23s08.c')
-rw-r--r--drivers/gpio/gpio-mcp23s08.c2
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)
chip->base + t, bank, t, label,
(mcp->cache[MCP_IODIR] & mask) ? "in " : "out",
(mcp->cache[MCP_GPIO] & mask) ? "hi" : "lo",
- (mcp->cache[MCP_GPPU] & mask) ? " " : "up");
+ (mcp->cache[MCP_GPPU] & mask) ? "up" : " ");
/* NOTE: ignoring the irq-related registers */
seq_printf(s, "\n");
}