diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-22 11:25:13 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-02-26 16:43:51 +0100 |
commit | ebb03f692f5192ca2da554e97c8461ec7498d3bf (patch) | |
tree | d7aca787a4c38edae95af2395792fe432ba22467 /drivers | |
parent | 3d8bb3d3080d1609c2a6bef007ede2d8f8ffea5b (diff) | |
download | linux-stable-ebb03f692f5192ca2da554e97c8461ec7498d3bf.tar.gz linux-stable-ebb03f692f5192ca2da554e97c8461ec7498d3bf.tar.bz2 linux-stable-ebb03f692f5192ca2da554e97c8461ec7498d3bf.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.c index a2706fe1340a..2ed5cbe7c8a8 100644 --- a/drivers/gpio/gpio-sim.c +++ b/drivers/gpio/gpio-sim.c @@ -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", |