diff options
Diffstat (limited to 'drivers/pinctrl/core.h')
-rw-r--r-- | drivers/pinctrl/core.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h index 6d3d40036d1b..75476b3d87da 100644 --- a/drivers/pinctrl/core.h +++ b/drivers/pinctrl/core.h | |||
@@ -33,6 +33,7 @@ struct pinctrl_gpio_range; | |||
33 | * @p: result of pinctrl_get() for this device | 33 | * @p: result of pinctrl_get() for this device |
34 | * @hog_default: default state for pins hogged by this device | 34 | * @hog_default: default state for pins hogged by this device |
35 | * @hog_sleep: sleep state for pins hogged by this device | 35 | * @hog_sleep: sleep state for pins hogged by this device |
36 | * @mutex: mutex taken on each pin controller specific action | ||
36 | * @device_root: debugfs root for this device | 37 | * @device_root: debugfs root for this device |
37 | */ | 38 | */ |
38 | struct pinctrl_dev { | 39 | struct pinctrl_dev { |
@@ -46,6 +47,7 @@ struct pinctrl_dev { | |||
46 | struct pinctrl *p; | 47 | struct pinctrl *p; |
47 | struct pinctrl_state *hog_default; | 48 | struct pinctrl_state *hog_default; |
48 | struct pinctrl_state *hog_sleep; | 49 | struct pinctrl_state *hog_sleep; |
50 | struct mutex mutex; | ||
49 | #ifdef CONFIG_DEBUG_FS | 51 | #ifdef CONFIG_DEBUG_FS |
50 | struct dentry *device_root; | 52 | struct dentry *device_root; |
51 | #endif | 53 | #endif |
@@ -168,6 +170,7 @@ struct pinctrl_maps { | |||
168 | }; | 170 | }; |
169 | 171 | ||
170 | struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name); | 172 | struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name); |
173 | struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np); | ||
171 | int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name); | 174 | int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name); |
172 | const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin); | 175 | const char *pin_get_name(struct pinctrl_dev *pctldev, const unsigned pin); |
173 | int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, | 176 | int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, |
@@ -186,8 +189,7 @@ void pinctrl_unregister_map(struct pinctrl_map const *map); | |||
186 | extern int pinctrl_force_sleep(struct pinctrl_dev *pctldev); | 189 | extern int pinctrl_force_sleep(struct pinctrl_dev *pctldev); |
187 | extern int pinctrl_force_default(struct pinctrl_dev *pctldev); | 190 | extern int pinctrl_force_default(struct pinctrl_dev *pctldev); |
188 | 191 | ||
189 | extern struct mutex pinctrl_mutex; | 192 | extern struct mutex pinctrl_maps_mutex; |
190 | extern struct list_head pinctrldev_list; | ||
191 | extern struct list_head pinctrl_maps; | 193 | extern struct list_head pinctrl_maps; |
192 | 194 | ||
193 | #define for_each_maps(_maps_node_, _i_, _map_) \ | 195 | #define for_each_maps(_maps_node_, _i_, _map_) \ |