OSDN Git Service

pinctrl: sunxi: Declare set_config on the GPIO chip
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 14 Mar 2019 19:32:53 +0000 (20:32 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 4 Apr 2019 03:54:59 +0000 (10:54 +0700)
commit04ed8c0c5b82c284f40449bed3458a822ad70cdb
treeec5464ae96ca6e24364ebe2bba7c13f70d9cd9c7
parentfb7dea6056286dd39067f936e226702b997e3e63
pinctrl: sunxi: Declare set_config on the GPIO chip

Our pin controller can configure the pins no matter how they are muxed, so
it makes sense to allow this for GPIOs as well.

Add the generic set_config function so that we can rely on the existing
pinctrl code we have.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c