staging: mt7621-pinctrl: stop using the deprecated 'pinctrl_add_gpio_range'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 6 Dec 2020 10:53:33 +0000 (11:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Dec 2020 14:10:16 +0000 (15:10 +0100)
commit94168e2ba4dc6a8db033afcd32ad64ab8ec9f09c
treed8d1845011eba7705551167d89931caab2922212
parent6c7b8ac995d9960b8a7238c10fd1d449f0157da1
staging: mt7621-pinctrl: stop using the deprecated 'pinctrl_add_gpio_range'

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.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20201206105333.18428-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-dts/mt7621.dtsi
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c