]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e79445dc3201eac98fbbd020eb4450425c4ff8c
tree9a0a671788dda6c28b8151159defdf6ee7bfc9a8
parentad5a6fda70e6aa761231c6c10896c8de8016c2e8
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