mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-19 12:00:00 +00:00
gpio: sim: use for_each_hwgpio()
Display debugfs information about all simulated GPIOs, not only the requested ones. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
3d8bb3d308
commit
ebb03f692f
@ -235,10 +235,10 @@ static void gpio_sim_dbg_show(struct seq_file *seq, struct gpio_chip *gc)
|
|||||||
|
|
||||||
guard(mutex)(&chip->lock);
|
guard(mutex)(&chip->lock);
|
||||||
|
|
||||||
for_each_requested_gpio(gc, i, label)
|
for_each_hwgpio(gc, i, label)
|
||||||
seq_printf(seq, " gpio-%-3d (%s) %s,%s\n",
|
seq_printf(seq, " gpio-%-3d (%s) %s,%s\n",
|
||||||
gc->base + i,
|
gc->base + i,
|
||||||
label,
|
label ?: "<unused>",
|
||||||
test_bit(i, chip->direction_map) ? "input" :
|
test_bit(i, chip->direction_map) ? "input" :
|
||||||
test_bit(i, chip->value_map) ? "output-high" :
|
test_bit(i, chip->value_map) ? "output-high" :
|
||||||
"output-low",
|
"output-low",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user