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/berlin | |
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/berlin')
-rw-r--r-- | drivers/pinctrl/berlin/berlin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pinctrl/berlin/berlin.c b/drivers/pinctrl/berlin/berlin.c index 86db2235ab00..61f1bf0e60ba 100644 --- a/drivers/pinctrl/berlin/berlin.c +++ b/drivers/pinctrl/berlin/berlin.c | |||
@@ -170,9 +170,9 @@ berlin_pinctrl_find_function_by_name(struct berlin_pinctrl *pctrl, | |||
170 | return NULL; | 170 | return NULL; |
171 | } | 171 | } |
172 | 172 | ||
173 | static int berlin_pinmux_enable(struct pinctrl_dev *pctrl_dev, | 173 | static int berlin_pinmux_set(struct pinctrl_dev *pctrl_dev, |
174 | unsigned function, | 174 | unsigned function, |
175 | unsigned group) | 175 | unsigned group) |
176 | { | 176 | { |
177 | struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); | 177 | struct berlin_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctrl_dev); |
178 | const struct berlin_desc_group *group_desc = pctrl->desc->groups + group; | 178 | const struct berlin_desc_group *group_desc = pctrl->desc->groups + group; |
@@ -197,7 +197,7 @@ static const struct pinmux_ops berlin_pinmux_ops = { | |||
197 | .get_functions_count = &berlin_pinmux_get_functions_count, | 197 | .get_functions_count = &berlin_pinmux_get_functions_count, |
198 | .get_function_name = &berlin_pinmux_get_function_name, | 198 | .get_function_name = &berlin_pinmux_get_function_name, |
199 | .get_function_groups = &berlin_pinmux_get_function_groups, | 199 | .get_function_groups = &berlin_pinmux_get_function_groups, |
200 | .enable = &berlin_pinmux_enable, | 200 | .set_mux = &berlin_pinmux_set, |
201 | }; | 201 | }; |
202 | 202 | ||
203 | static int berlin_pinctrl_add_function(struct berlin_pinctrl *pctrl, | 203 | static int berlin_pinctrl_add_function(struct berlin_pinctrl *pctrl, |