gpio: sim: don't use GPIO base in debugfs output
PATCH 1/1 gpio: sim: don't use GPIO base in debugfs output
From: Bartosz Golaszewski <[email protected]>
We're in the process of removing unneeded references to the global GPIO base number treewide. Use the HW offset instead of the base number.
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpio-sim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/gpio-sim.c +1 -2
@@ -262,8 +262,7 @@ static void gpio_sim_dbg_show(struct seq_file *seq, struct gpio_chip *gc)guard (mutex)(&chip->lock);for_each_hwgpio (gc, i, label) -seq_printf (seq," gpio-%-3d (%s) %s,%s\n" , - gc->base + i, +seq_printf (seq," gpio-%-3d (%s) %s,%s\n" , i, label ?:"<unused>" ,test_bit (i, chip->direction_map) ?"input" : test_bit(i, chip->value_map) ? "output-high" :
Signature · 1 line
2.48.1
Quoted 6 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
We're in the process of removing unneeded references to the global GPIO base number treewide. Use the HW offset instead of the base number.
Signed-off-by Bartosz Golaszewski <[email protected]>
Reviewed-by Linus Walleij <[email protected]>
Yours,
Linus Walleij
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 4 lines · Bartosz Golaszewski
We're in the process of removing unneeded references to the global GPIO base number treewide. Use the HW offset instead of the base number.
Applied, thanks!
[1/1] gpio: sim: don't use GPIO base in debugfs output
https://git.kernel.org/brgl/linux/c/a16a3cb07140a094ffd918290cef76135876b532
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>