mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
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>
This commit is contained in:
@@ -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" :
|
||||
|
||||
Reference in New Issue
Block a user