From: Peter Korsgaard Date: Wed, 25 Apr 2012 09:51:53 +0000 (+0200) Subject: gpio-mcp23s08: dbg_show: fix pullup configuration display X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb1567f7ad0032ba7b02b878e352f191d53dc228;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio-mcp23s08: dbg_show: fix pullup configuration display Pullups are enabled when bits are set, not when cleared. Signed-off-by: Peter Korsgaard Signed-off-by: Grant Likely --- 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"); }