History

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.

Linus Walleij committed 14 years ago

Commit befe5bd1 parent e93bcee5 files · +779 −635Browse files

Showing the changes to include/linux/pinctrl (1 of 5 files). Show all

Unified · Split

include/linux/pinctrl/consumer.h+4−4
@@ -19,9 +19,9 @@ · 18 unmodified lines
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_PINMUX22#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); · 3 unmodified lines
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) · 32 unmodified lines
70{70{
71}71}
72 72
73#endif /* CONFIG_PINMUX */73#endif /* CONFIG_PINCTRL */
74 74
75#ifdef CONFIG_PINCONF75#ifdef CONFIG_PINCONF
76 76

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t