Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/gpio/gpio-sim.c
··· 235 235 236 236 guard(mutex)(&chip->lock); 237 237 238 - for_each_requested_gpio(gc, i, label) 238 + for_each_hwgpio(gc, i, label) 239 239 seq_printf(seq, " gpio-%-3d (%s) %s,%s\n", 240 240 gc->base + i, 241 - label, 241 + label ?: "<unused>", 242 242 test_bit(i, chip->direction_map) ? "input" : 243 243 test_bit(i, chip->value_map) ? "output-high" : 244 244 "output-low",