aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/qcom
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-09-03 07:02:56 -0400
committerLinus Walleij <linus.walleij@linaro.org>2014-09-04 04:05:07 -0400
commit03e9f0cac5da6af85758276cb4624caf5911f2b9 (patch)
treece79c1a080347a615b82f2805296f3e3091c01c1 /drivers/pinctrl/qcom
parent327455817a92522e669d2d11367e42af5956a8ed (diff)
pinctrl: clean up after enable refactoring
commit 2243a87d90b42eb38bc281957df3e57c712b5e56 "pinctrl: avoid duplicated calling enable_pinmux_setting for a pin" removed the .disable callback from the struct pinmux_ops, making the .enable() callback the only remaining callback. However .enable() is a bad name as it seems to imply that a muxing can also be disabled. Rename the callback to .set_mux() and also take this opportunity to clean out any remaining mentions of .disable() from the documentation. Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Acked-by: Fan Wu <fwu@marvell.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom')
-rw-r--r--drivers/pinctrl/qcom/pinctrl-msm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 80a64cad907d..01eab47a746f 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
@@ -134,9 +134,9 @@ static int msm_get_function_groups(struct pinctrl_dev *pctldev,
134 return 0; 134 return 0;
135} 135}
136 136
137static int msm_pinmux_enable(struct pinctrl_dev *pctldev, 137static int msm_pinmux_set_mux(struct pinctrl_dev *pctldev,
138 unsigned function, 138 unsigned function,
139 unsigned group) 139 unsigned group)
140{ 140{
141 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); 141 struct msm_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev);
142 const struct msm_pingroup *g; 142 const struct msm_pingroup *g;
@@ -170,7 +170,7 @@ static const struct pinmux_ops msm_pinmux_ops = {
170 .get_functions_count = msm_get_functions_count, 170 .get_functions_count = msm_get_functions_count,
171 .get_function_name = msm_get_function_name, 171 .get_function_name = msm_get_function_name,
172 .get_function_groups = msm_get_function_groups, 172 .get_function_groups = msm_get_function_groups,
173 .enable = msm_pinmux_enable, 173 .set_mux = msm_pinmux_set_mux,
174}; 174};
175 175
176static int msm_config_reg(struct msm_pinctrl *pctrl, 176static int msm_config_reg(struct msm_pinctrl *pctrl,