diff options
author | Evan Green <evgreen@chromium.org> | 2018-11-16 19:58:53 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-11-19 15:40:27 +0100 |
commit | 977d057ad3464c4698fd875ca6bf3f30e554cee2 (patch) | |
tree | 370ee36958b841b336e612756940addf75065ab1 /drivers/pinctrl/qcom/pinctrl-msm.h | |
parent | dt-bindings: pinctrl: update bindings for MT7629 SoC (diff) | |
download | linux-977d057ad3464c4698fd875ca6bf3f30e554cee2.tar.xz linux-977d057ad3464c4698fd875ca6bf3f30e554cee2.zip |
pinctrl: msm: Add sleep pinctrl state transitions
Add PM suspend callbacks to the msm core driver that select the
sleep and default pinctrl states. Then wire those callbacks up
in the sdm845 driver, for those boards that may have GPIO hogs
that need to change state during suspend.
Signed-off-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom/pinctrl-msm.h')
-rw-r--r-- | drivers/pinctrl/qcom/pinctrl-msm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.h b/drivers/pinctrl/qcom/pinctrl-msm.h index 29172fdf5882..c12048e54a6f 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.h +++ b/drivers/pinctrl/qcom/pinctrl-msm.h @@ -123,6 +123,8 @@ struct msm_pinctrl_soc_data { unsigned int ntiles; }; +extern const struct dev_pm_ops msm_pinctrl_dev_pm_ops; + int msm_pinctrl_probe(struct platform_device *pdev, const struct msm_pinctrl_soc_data *soc_data); int msm_pinctrl_remove(struct platform_device *pdev); |