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

gpio: mvebu: don't print out global GPIO numbers in debugfs callbacks

In order to further limit the number of references to the GPIO base
number stored in struct gpio_chip, replace the global GPIO numbers in
the output of debugfs callbacks by hardware offsets.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250826-gpio-dbg-show-base-v1-5-7f27cd7f2256@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

+1 -1
+1 -1
drivers/gpio/gpio-mvebu.c
··· 898 898 msk = BIT(i); 899 899 is_out = !(io_conf & msk); 900 900 901 - seq_printf(s, " gpio-%-3d (%-20.20s)", chip->base + i, label); 901 + seq_printf(s, " gpio-%-3d (%-20.20s)", i, label); 902 902 903 903 if (is_out) { 904 904 seq_printf(s, " out %s %s\n",