pinctrl: rockchip: split out verification of mux settings
authorJohn Keeping <john@metanate.com>
Thu, 23 Mar 2017 10:59:30 +0000 (10:59 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Mar 2017 09:18:03 +0000 (11:18 +0200)
commit05709c3e88f5f0adb7889facbfd546c998f65d59
tree9a0a671788dda6c28b8151159defdf6ee7bfc9a8
parent70b7aa7a87b4593f50f634dc721e18bd1f9e5448
pinctrl: rockchip: split out verification of mux settings

We need to avoid calling regmap functions from irq handlers, so the next
commit is going to move the call to rockchip_set_mux() into an
irq_bus_sync_unlock handler.  But we can't return an error from there so
we still need to check the settings from rockchip_irq_set_type() and we
will use this new rockchip_verify_mux() function from there.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c