[PATCH] staging: mt7621-pinctrl: stop using the deprecated 'pinctrl_add_gpio_range'
Linus Walleij
linus.walleij at linaro.org
Mon Dec 7 13:05:10 UTC 2020
On Sun, Dec 6, 2020 at 11:53 AM Sergio Paracuellos
<sergio.paracuellos at gmail.com> wrote:
> If the gpio DT node has the 'gpio-ranges' property, the range will be
> added by the gpio core and doesn't need to be added by the pinctrl
> driver.
>
> By having the gpio-ranges property, we can map every pin between
> gpio node and pinctrl node and we can stop using the deprecated
> pinctrl_add_gpio_range() function.
>
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos at gmail.com>
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
After this I think the driver looks good and can graduate from staging.
Can you send a patch to move this to drivers/pinctrl next?
I think drivers/pinctrl/pinctrl-rt2880.c since we don't expect a lot
more of them.
Yours,
Linus Walleij
More information about the devel
mailing list