projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae79c19
)
gpio-mcp23s08: dbg_show: fix pullup configuration display
author
Peter Korsgaard
<jacmet@sunsite.dk>
Wed, 25 Apr 2012 09:51:53 +0000
(11:51 +0200)
committer
Grant Likely
<grant.likely@secretlab.ca>
Fri, 18 May 2012 22:48:35 +0000
(16:48 -0600)
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>
drivers/gpio/gpio-mcp23s08.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-mcp23s08.c
b/drivers/gpio/gpio-mcp23s08.c
index
c5d83a8
..
0f42518
100644
(file)
--- 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");
}