mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
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>
This commit is contained in:
parent
ae79c19049
commit
eb1567f7ad
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user