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
1919 /* This struct is private to the core and should be regarded as a cookie */
2020 struct pinctrl;
2121
22−#ifdef CONFIG_PINMUX
22+#ifdef CONFIG_PINCTRL
2323
24−/* External interface to pinmux */
24+/* External interface to pin control */
2525 extern int pinctrl_request_gpio(unsigned gpio);
2626 extern void pinctrl_free_gpio(unsigned gpio);
2727 extern int pinctrl_gpio_direction_input(unsigned gpio);
@@ -31,7 +31,7 @@ extern void pinctrl_put(struct pinctrl *p); · 3 unmodified lines
3131 extern int pinctrl_enable(struct pinctrl *p);
3232 extern void pinctrl_disable(struct pinctrl *p);
3333
34−#else /* !CONFIG_PINMUX */
34+#else /* !CONFIG_PINCTRL */
3535
3636 static inline int pinctrl_request_gpio(unsigned gpio)
3737 {
@@ -70,7 +70,7 @@ static inline void pinctrl_disable(struct pinctrl *p) · 32 unmodified lines
7070 {
7171 }
7272
73−#endif /* CONFIG_PINMUX */
73+#endif /* CONFIG_PINCTRL */
7474
7575 #ifdef CONFIG_PINCONF
7676

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