Skip to content
Commit a82e5378 authored by Douglas Anderson's avatar Douglas Anderson Committed by Linus Walleij
Browse files

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: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Reviewed-by: default avatarMaulik Shah <mkshah@codeaurora.org>
Tested-by: default avatarMaulik Shah <mkshah@codeaurora.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210114191601.v7.1.I3ad184e3423d8e479bc3e86f5b393abb1704a1d1@changeid


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 81bd1579
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment