]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: core: Show pin numbers for the controllers with base = 0
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Apr 2021 13:03:56 +0000 (16:03 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 Apr 2021 00:13:42 +0000 (02:13 +0200)
commitd9ad48a8a0bfd23d6aaf9ff0fef9171dddf4476e
treec9b12bef26ea73e5057b644099d202dd7dfa9816
parent2ce77f807495a61d07cb134a89948379ffd7e612
pinctrl: core: Show pin numbers for the controllers with base = 0

The commit 85be2dd7c33b ("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: 85be2dd7c33b ("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>
drivers/pinctrl/core.c