Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Korsgaard and committed by
Grant Likely
eb1567f7 ae79c190

+1 -1
+1 -1
drivers/gpio/gpio-mcp23s08.c
··· 353 353 chip->base + t, bank, t, label, 354 354 (mcp->cache[MCP_IODIR] & mask) ? "in " : "out", 355 355 (mcp->cache[MCP_GPIO] & mask) ? "hi" : "lo", 356 - (mcp->cache[MCP_GPPU] & mask) ? " " : "up"); 356 + (mcp->cache[MCP_GPPU] & mask) ? "up" : " "); 357 357 /* NOTE: ignoring the irq-related registers */ 358 358 seq_printf(s, "\n"); 359 359 }