Commit a16a3cb0 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpio: sim: don't use GPIO base in debugfs output



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.

Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250815111733.79283-1-brgl@bgdev.pl


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 38623d53
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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" :