pinctrl: msm: Mux out gpio function with gpio_request()
authorStephen Boyd <swboyd@chromium.org>
Thu, 16 Aug 2018 20:06:47 +0000 (13:06 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:41:12 +0000 (09:41 +0200)
commit1de7ddb3a15c649fd15568d2056af295930656f8
treecc261beaf0b8cc813f5825f4e7a4f07a8180662a
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
pinctrl: msm: Mux out gpio function with gpio_request()

We rely on devices to use pinmuxing configurations in DT to select the
GPIO function (function 0) if they're going to use the gpio in GPIO
mode. Let's simplify things for driver authors by implementing
gpio_request_enable() for this pinctrl driver to mux out the GPIO
function when the gpio is use from gpiolib.

Cc: Doug Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c