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

gpio: xra1403: 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-6-7f27cd7f2256@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

+1 -2
+1 -2
drivers/gpio/gpio-xra1403.c
··· 135 135 gcr = value[XRA_GCR + 1] << 8 | value[XRA_GCR]; 136 136 gsr = value[XRA_GSR + 1] << 8 | value[XRA_GSR]; 137 137 for_each_requested_gpio(chip, i, label) { 138 - seq_printf(s, " gpio-%-3d (%-12s) %s %s\n", 139 - chip->base + i, label, 138 + seq_printf(s, " gpio-%-3d (%-12s) %s %s\n", i, label, 140 139 (gcr & BIT(i)) ? "in" : "out", 141 140 str_hi_lo(gsr & BIT(i))); 142 141 }