pinctrl: st: stop abusing of_get_named_gpio()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 28 Sep 2022 20:20:18 +0000 (13:20 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Oct 2022 07:58:17 +0000 (09:58 +0200)
commite75729b2f63fbdbf776930de8b0eee0d43a68be6
treeb45dd7e63765d7303d8361d9808e755473eb36ff
parentf4a31facfa80df2f440a2fdc2b7f58d6c23925b0
pinctrl: st: stop abusing of_get_named_gpio()

Pin descriptions for this chip only look like standard GPIO device tree
descriptions, while in fact they contain additional data (in excess of
number of cells specified in description of gpio controllers). They also
refer to only pins/gpios belonging to the driver and not to arbitrary
gpio in the system.

Because we want to stop exporting OF-specific handlers from gpiolib-of,
let's parse the pin reference ourself instead of trying to call
of_get_named_gpio().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/YzSsgoVoJn4+mSpv@google.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c