Skip to contentSkip to conversation

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

PATCH Applied Bartosz Golaszewski 2 participants 3 messages Aug 15, 2025 – Aug 25, 2025 GPIO

lore
Share & tools
lore
#0 lore raw

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

From: Bartosz Golaszewski <[email protected]>

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.

---
 drivers/gpio/gpio-sim.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/gpio-sim.c +1 -2
index 050092583f79..a83f5238427c 100644
@@ -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" :
Signature · 1 line
2.48.1
author Applied
#2 lore raw
In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Bartosz Golaszewski

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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>