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);
|
||||
|
||||
for_each_requested_gpio(gc, i, label)
|
||||
for_each_hwgpio(gc, i, label)
|
||||
seq_printf(seq, " gpio-%-3d (%s) %s,%s\n",
|
||||
gc->base + i,
|
||||
label,
|
||||
label ?: "<unused>",
|
||||
test_bit(i, chip->direction_map) ? "input" :
|
||||
test_bit(i, chip->value_map) ? "output-high" :
|
||||
"output-low",
|
||||
|
Loading…
Reference in New Issue
Block a user