pinctrl: bcm2835: Switch to use ->add_pin_ranges()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 13 Jan 2023 21:53:51 +0000 (23:53 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Jan 2023 12:38:55 +0000 (13:38 +0100)
commitbc96299707d925286d67212704dca45d73031c53
tree0aeafed4d8021c2ac7f6ea4a044fa18844771cb9
parent2d578dd27871372f7159dd3206149ec616700d87
pinctrl: bcm2835: Switch to use ->add_pin_ranges()

Yeah, while the ->add_pin_ranges() shouldn't be used by DT drivers,
this one requires it to support quite old firmware descriptions that
do not have gpio-ranges property.

The change allows to clean up GPIO library from OF specifics.
There is no functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230113215352.44272-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c