Skip to content

Commit ebb03f6

Browse files
author
Bartosz Golaszewski
committed
gpio: sim: use for_each_hwgpio()
Display debugfs information about all simulated GPIOs, not only the requested ones. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Linus Walleij <[email protected]>
1 parent 3d8bb3d commit ebb03f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio-sim.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ static void gpio_sim_dbg_show(struct seq_file *seq, struct gpio_chip *gc)
235235

236236
guard(mutex)(&chip->lock);
237237

238-
for_each_requested_gpio(gc, i, label)
238+
for_each_hwgpio(gc, i, label)
239239
seq_printf(seq, " gpio-%-3d (%s) %s,%s\n",
240240
gc->base + i,
241-
label,
241+
label ?: "<unused>",
242242
test_bit(i, chip->direction_map) ? "input" :
243243
test_bit(i, chip->value_map) ? "output-high" :
244244
"output-low",

0 commit comments

Comments
 (0)