diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-09-03 07:02:56 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-09-04 04:05:07 -0400 |
commit | 03e9f0cac5da6af85758276cb4624caf5911f2b9 (patch) | |
tree | ce79c1a080347a615b82f2805296f3e3091c01c1 /drivers/pinctrl/sirf | |
parent | 327455817a92522e669d2d11367e42af5956a8ed (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/sirf')
-rw-r--r-- | drivers/pinctrl/sirf/pinctrl-sirf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c index 45f93f952a39..6f252fd7cb0c 100644 --- a/drivers/pinctrl/sirf/pinctrl-sirf.c +++ b/drivers/pinctrl/sirf/pinctrl-sirf.c | |||
@@ -179,8 +179,9 @@ static void sirfsoc_pinmux_endisable(struct sirfsoc_pmx *spmx, | |||
179 | } | 179 | } |
180 | } | 180 | } |
181 | 181 | ||
182 | static int sirfsoc_pinmux_enable(struct pinctrl_dev *pmxdev, unsigned selector, | 182 | static int sirfsoc_pinmux_set_mux(struct pinctrl_dev *pmxdev, |
183 | unsigned group) | 183 | unsigned selector, |
184 | unsigned group) | ||
184 | { | 185 | { |
185 | struct sirfsoc_pmx *spmx; | 186 | struct sirfsoc_pmx *spmx; |
186 | 187 | ||
@@ -237,7 +238,7 @@ static int sirfsoc_pinmux_request_gpio(struct pinctrl_dev *pmxdev, | |||
237 | } | 238 | } |
238 | 239 | ||
239 | static struct pinmux_ops sirfsoc_pinmux_ops = { | 240 | static struct pinmux_ops sirfsoc_pinmux_ops = { |
240 | .enable = sirfsoc_pinmux_enable, | 241 | .set_mux = sirfsoc_pinmux_set_mux, |
241 | .get_functions_count = sirfsoc_pinmux_get_funcs_count, | 242 | .get_functions_count = sirfsoc_pinmux_get_funcs_count, |
242 | .get_function_name = sirfsoc_pinmux_get_func_name, | 243 | .get_function_name = sirfsoc_pinmux_get_func_name, |
243 | .get_function_groups = sirfsoc_pinmux_get_groups, | 244 | .get_function_groups = sirfsoc_pinmux_get_groups, |