* [PATCH] gpio: sim: don't use GPIO base in debugfs output
@ 2025-08-15 11:17 Bartosz Golaszewski
2025-08-19 12:48 ` Linus Walleij
2025-08-25 18:55 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2025-08-15 11:17 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
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 <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-sim.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-sim.c b/drivers/gpio/gpio-sim.c
index 050092583f79..a83f5238427c 100644
--- a/drivers/gpio/gpio-sim.c
+++ b/drivers/gpio/gpio-sim.c
@@ -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" :
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gpio: sim: don't use GPIO base in debugfs output
2025-08-15 11:17 [PATCH] gpio: sim: don't use GPIO base in debugfs output Bartosz Golaszewski
@ 2025-08-19 12:48 ` Linus Walleij
2025-08-25 18:55 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2025-08-19 12:48 UTC (permalink / raw)
To: Bartosz Golaszewski; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski
On Fri, Aug 15, 2025 at 1:17 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> 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 <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gpio: sim: don't use GPIO base in debugfs output
2025-08-15 11:17 [PATCH] gpio: sim: don't use GPIO base in debugfs output Bartosz Golaszewski
2025-08-19 12:48 ` Linus Walleij
@ 2025-08-25 18:55 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2025-08-25 18:55 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski
Cc: Bartosz Golaszewski, linux-gpio, linux-kernel
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Fri, 15 Aug 2025 13:17:33 +0200, Bartosz Golaszewski wrote:
> 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,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-25 18:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 11:17 [PATCH] gpio: sim: don't use GPIO base in debugfs output Bartosz Golaszewski
2025-08-19 12:48 ` Linus Walleij
2025-08-25 18:55 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).