]> git.itanic.dy.fi Git - linux-stable/commit
pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0
authorDouglas Anderson <dianders@chromium.org>
Fri, 15 Jan 2021 03:16:21 +0000 (19:16 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jan 2021 15:07:08 +0000 (16:07 +0100)
commita82e537807d5c85706cd4c16fd2de77a8495dc8d
tree825edbcea294c1b88adff7efe6cbbc51c87f4616
parent81bd1579b43e0e285cba667399f1b063f1ce7672
pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

There's currently a comment in the code saying function 0 is GPIO.
Instead of hardcoding it, let's add a member where an SoC can specify
it.  No known SoCs use a number other than 0, but this just makes the
code clearer.  NOTE: no SoC code needs to be updated since we can rely
on zero-initialization.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Maulik Shah <mkshah@codeaurora.org>
Tested-by: Maulik Shah <mkshah@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210114191601.v7.1.I3ad184e3423d8e479bc3e86f5b393abb1704a1d1@changeid
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-msm.c
drivers/pinctrl/qcom/pinctrl-msm.h