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

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: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250815111733.79283-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

+1 -2
+1 -2
drivers/gpio/gpio-sim.c
··· 262 262 guard(mutex)(&chip->lock); 263 263 264 264 for_each_hwgpio(gc, i, label) 265 - seq_printf(seq, " gpio-%-3d (%s) %s,%s\n", 266 - gc->base + i, 265 + seq_printf(seq, " gpio-%-3d (%s) %s,%s\n", i, 267 266 label ?: "<unused>", 268 267 test_bit(i, chip->direction_map) ? "input" : 269 268 test_bit(i, chip->value_map) ? "output-high" :