aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-02-09 13:47:48 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-02-10 15:33:06 -0500
commitbefe5bdfbb698b3bc57c58d0bd7ca3391c9275ed (patch)
tree71416f2adc515f010f54de2371e29626cd144a5b /include/linux
parente93bcee00c43e2bd4037291262111016f4c05793 (diff)
pinctrl: factor pin control handles over to the core
This moves the per-devices struct pinctrl handles and device map over from the pinmux part of the subsystem to the core pinctrl part. This makes the device handles core infrastructure with the goal of using these handles also for pin configuration, so that device drivers (or boards etc) will need one and only one handle to the pin control core. Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pinctrl/consumer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index c7d061776293..30865947f2d9 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -19,9 +19,9 @@
19/* This struct is private to the core and should be regarded as a cookie */ 19/* This struct is private to the core and should be regarded as a cookie */
20struct pinctrl; 20struct pinctrl;
21 21
22#ifdef CONFIG_PINMUX 22#ifdef CONFIG_PINCTRL
23 23
24/* External interface to pinmux */ 24/* External interface to pin control */
25extern int pinctrl_request_gpio(unsigned gpio); 25extern int pinctrl_request_gpio(unsigned gpio);
26extern void pinctrl_free_gpio(unsigned gpio); 26extern void pinctrl_free_gpio(unsigned gpio);
27extern int pinctrl_gpio_direction_input(unsigned gpio); 27extern int pinctrl_gpio_direction_input(unsigned gpio);
@@ -31,7 +31,7 @@ extern void pinctrl_put(struct pinctrl *p);
31extern int pinctrl_enable(struct pinctrl *p); 31extern int pinctrl_enable(struct pinctrl *p);
32extern void pinctrl_disable(struct pinctrl *p); 32extern void pinctrl_disable(struct pinctrl *p);
33 33
34#else /* !CONFIG_PINMUX */ 34#else /* !CONFIG_PINCTRL */
35 35
36static inline int pinctrl_request_gpio(unsigned gpio) 36static inline int pinctrl_request_gpio(unsigned gpio)
37{ 37{
@@ -70,7 +70,7 @@ static inline void pinctrl_disable(struct pinctrl *p)
70{ 70{
71} 71}
72 72
73#endif /* CONFIG_PINMUX */ 73#endif /* CONFIG_PINCTRL */
74 74
75#ifdef CONFIG_PINCONF 75#ifdef CONFIG_PINCONF
76 76