summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-imx.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2013-07-18 08:15:04 -0700
committerLinus Walleij <linus.walleij@linaro.org>2013-07-23 01:23:27 +0200
commitf33334978abd01cbf24d067977a25ad0abd047c8 (patch)
tree1997769265f0b3c4327c081056dcd9ef43325ddb /drivers/pinctrl/pinctrl-imx.c
parent496940c10278599528cfbde0e05208bf4ef0c7c0 (diff)
pinctrl: Remove duplicate code in pinctrl_pm_select_state functions
There's no need to duplicate essentially the same functions. Let's introduce static int pinctrl_pm_select_state() and make the other related functions call that. This allows us to add support later on for multiple active states, and more optimized dynamic remuxing. Note that we still need to export the various pinctrl_pm_select functions as we want to keep struct pinctrl_state private to the pinctrl code, and cannot replace those with inline functions. Cc: Felipe Balbi <balbi@ti.com> Cc: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx.c')
0 files changed, 0 insertions, 0 deletions