linux/drivers/pinctrl
Andy Shevchenko 482715ff06 pinctrl: core: Show pin numbers for the controllers with base = 0
The commit f1b206cf7c ("pinctrl: core: print gpio in pins debugfs file")
enabled GPIO pin number and label in debugfs for pin controller. However,
it limited that feature to the chips where base is positive number. This,
in particular, excluded chips where base is 0 for the historical or backward
compatibility reasons. Refactor the code to include the latter as well.

Fixes: f1b206cf7c ("pinctrl: core: print gpio in pins debugfs file")
Cc: Drew Fustini <drew@beagleboard.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Drew Fustini <drew@beagleboard.org>
Reviewed-by: Drew Fustini <drew@beagleboard.org>
Link: https://lore.kernel.org/r/20210415130356.15885-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2021-04-22 02:13:42 +02:00
..
actions pinctrl: actions: Add depends on || COMPILE_TEST 2021-02-12 13:44:26 +01:00
aspeed pinctrl: aspeed: g6: Fix PWMG0 pinctrl setting 2021-01-04 16:02:28 +01:00
bcm pinctrl: bcm: Simplify bool comparison 2021-01-18 16:30:08 +01:00
berlin
cirrus
freescale pinctrl: remove empty lines in pinctrl subsystem 2021-01-05 16:09:24 +01:00
intel pinctrl: lewisburg: Update number of pins in community 2021-04-13 14:09:48 +03:00
mediatek This is the bulk of pin control changes for the v5.12 kernel. 2021-02-22 18:39:11 -08:00
meson pinctrl/meson: enable building as modules 2020-11-05 14:51:38 +01:00
mvebu pinctrl: remove empty lines in pinctrl subsystem 2021-01-05 16:09:24 +01:00
nomadik pinctrl: nomadik: Remove unused variable in nmk_gpio_dbg_show_one 2021-01-06 00:20:14 +01:00
nuvoton pinctrl: nuvoton: npcm7xx: Fix alignment of table header comment 2021-02-12 13:44:36 +01:00
pxa
qcom pinctrl: qcom: fix unintentional string concatenation 2021-03-25 10:45:11 +01:00
ralink pinctrl: ralink: rt2880: fix '-Wmissing-prototypes' in init function 2021-01-04 15:40:02 +01:00
renesas pinctrl: renesas: Updates for v5.12 2021-01-18 16:11:42 +01:00
samsung pinctrl: samsung: use raw_spinlock for s3c64xx 2021-01-27 09:12:12 +01:00
spear pinctrl/spear: simplify the return expression of spear300_pinctrl_probe() 2020-12-12 01:42:06 +01:00
sprd pinctrl: sprd: Simplify bool comparison 2021-01-18 14:41:42 +01:00
stm32
sunxi pinctrl: sunxi: Add support for the Allwinner H616-R pin controller 2021-01-21 22:15:46 +01:00
tegra
ti pinctrl: ti :iodelay: Fixed inconsistent indenting 2021-01-18 14:21:04 +01:00
uniphier
visconti gpio: visconti: Add Toshiba Visconti GPIO support 2021-02-15 11:43:26 +01:00
vt8500
core.c pinctrl: core: Show pin numbers for the controllers with base = 0 2021-04-22 02:13:42 +02:00
core.h
devicetree.c pinctrl: devicetree: Keep deferring even on timeout 2020-09-12 18:19:53 +02:00
devicetree.h
Kconfig RISC-V Patches for the 5.12 Merge Window 2021-02-26 10:28:35 -08:00
Makefile RISC-V Patches for the 5.12 Merge Window 2021-02-26 10:28:35 -08:00
pinconf-generic.c
pinconf.c
pinconf.h
pinctrl-amd.c This is the bulk of pin control changes for the v5.11 kernel: 2020-12-16 15:02:49 -08:00
pinctrl-amd.h pinctrl: amd: Add missing pins to the pin group list 2020-10-07 15:37:17 +02:00
pinctrl-artpec6.c
pinctrl-as3722.c
pinctrl-at91-pio4.c pinctrl: at91-pio4: fix "Prefer 'unsigned int' to bare use of 'unsigned'" 2021-02-12 13:44:36 +01:00
pinctrl-at91.c pinctrl: remove empty lines in pinctrl subsystem 2021-01-05 16:09:24 +01:00
pinctrl-at91.h
pinctrl-axp209.c
pinctrl-bm1880.c
pinctrl-da850-pupd.c
pinctrl-da9062.c
pinctrl-digicolor.c
pinctrl-equilibrium.c
pinctrl-equilibrium.h
pinctrl-falcon.c pinctrl: falcon: add missing put_device() call in pinctrl_falcon_probe() 2020-12-04 09:17:51 +01:00
pinctrl-gemini.c
pinctrl-ingenic.c This is the bulk of pin control changes for the v5.12 kernel. 2021-02-22 18:39:11 -08:00
pinctrl-k210.c pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver 2021-02-18 23:18:01 -08:00
pinctrl-lantiq.c
pinctrl-lantiq.h
pinctrl-lpc18xx.c
pinctrl-max77620.c
pinctrl-mcp23s08.c
pinctrl-mcp23s08.h
pinctrl-mcp23s08_i2c.c
pinctrl-mcp23s08_spi.c pinctrl: mcp23s08: Print error message when regmap init fails 2020-11-05 11:30:31 +01:00
pinctrl-microchip-sgpio.c pinctrl: microchip-sgpio: Fix wrong register offset for IRQ trigger 2021-03-10 14:41:24 +01:00
pinctrl-ocelot.c pinctrl: ocelot: Add support for Serval platforms 2020-11-10 15:10:54 +01:00
pinctrl-oxnas.c
pinctrl-palmas.c
pinctrl-pic32.c
pinctrl-pic32.h
pinctrl-pistachio.c
pinctrl-rk805.c
pinctrl-rockchip.c pinctrl: rockchip: fix restore error in resume 2021-03-10 14:41:25 +01:00
pinctrl-single.c pinctrl: single: set function name when adding function 2021-02-12 13:44:26 +01:00
pinctrl-st.c pinctrl: remove empty lines in pinctrl subsystem 2021-01-05 16:09:24 +01:00
pinctrl-stmfx.c
pinctrl-sx150x.c pinctrl: remove empty lines in pinctrl subsystem 2021-01-05 16:09:24 +01:00
pinctrl-tb10x.c
pinctrl-utils.c pinctrl: use krealloc_array() 2020-12-15 12:13:37 -08:00
pinctrl-utils.h
pinctrl-xway.c
pinctrl-zynq.c
pinmux.c pinctrl: pinmux: add function selector to pinmux-functions 2021-01-24 00:26:47 +01:00
pinmux.h