diff options
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 12 | ||||
-rw-r--r-- | drivers/pinctrl/core.h | 3 |
2 files changed, 7 insertions, 8 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 50bcc511193e..b6e3c35c028e 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c | |||
@@ -293,9 +293,9 @@ pinctrl_match_gpio_range(struct pinctrl_dev *pctldev, unsigned gpio) | |||
293 | * the GPIO subsystem, return the device and the matching GPIO range. Returns | 293 | * the GPIO subsystem, return the device and the matching GPIO range. Returns |
294 | * negative if the GPIO range could not be found in any device. | 294 | * negative if the GPIO range could not be found in any device. |
295 | */ | 295 | */ |
296 | int pinctrl_get_device_gpio_range(unsigned gpio, | 296 | static int pinctrl_get_device_gpio_range(unsigned gpio, |
297 | struct pinctrl_dev **outdev, | 297 | struct pinctrl_dev **outdev, |
298 | struct pinctrl_gpio_range **outrange) | 298 | struct pinctrl_gpio_range **outrange) |
299 | { | 299 | { |
300 | struct pinctrl_dev *pctldev = NULL; | 300 | struct pinctrl_dev *pctldev = NULL; |
301 | 301 | ||
@@ -332,6 +332,7 @@ void pinctrl_add_gpio_range(struct pinctrl_dev *pctldev, | |||
332 | list_add_tail(&range->node, &pctldev->gpio_ranges); | 332 | list_add_tail(&range->node, &pctldev->gpio_ranges); |
333 | mutex_unlock(&pctldev->gpio_ranges_lock); | 333 | mutex_unlock(&pctldev->gpio_ranges_lock); |
334 | } | 334 | } |
335 | EXPORT_SYMBOL_GPL(pinctrl_add_gpio_range); | ||
335 | 336 | ||
336 | /** | 337 | /** |
337 | * pinctrl_remove_gpio_range() - remove a range of GPIOs fro a pin controller | 338 | * pinctrl_remove_gpio_range() - remove a range of GPIOs fro a pin controller |
@@ -345,6 +346,7 @@ void pinctrl_remove_gpio_range(struct pinctrl_dev *pctldev, | |||
345 | list_del(&range->node); | 346 | list_del(&range->node); |
346 | mutex_unlock(&pctldev->gpio_ranges_lock); | 347 | mutex_unlock(&pctldev->gpio_ranges_lock); |
347 | } | 348 | } |
349 | EXPORT_SYMBOL_GPL(pinctrl_remove_gpio_range); | ||
348 | 350 | ||
349 | /** | 351 | /** |
350 | * pinctrl_get_group_selector() - returns the group selector for a group | 352 | * pinctrl_get_group_selector() - returns the group selector for a group |
@@ -785,7 +787,7 @@ static int pinctrl_hog_map(struct pinctrl_dev *pctldev, | |||
785 | * map entries that need to be hogged, i.e. get+enabled until the system shuts | 787 | * map entries that need to be hogged, i.e. get+enabled until the system shuts |
786 | * down. | 788 | * down. |
787 | */ | 789 | */ |
788 | int pinctrl_hog_maps(struct pinctrl_dev *pctldev) | 790 | static int pinctrl_hog_maps(struct pinctrl_dev *pctldev) |
789 | { | 791 | { |
790 | struct device *dev = pctldev->dev; | 792 | struct device *dev = pctldev->dev; |
791 | const char *devname = dev_name(dev); | 793 | const char *devname = dev_name(dev); |
@@ -819,7 +821,7 @@ int pinctrl_hog_maps(struct pinctrl_dev *pctldev) | |||
819 | * pinctrl_unhog_maps() - unhog specific map entries on controller device | 821 | * pinctrl_unhog_maps() - unhog specific map entries on controller device |
820 | * @pctldev: the pin control device to unhog entries on | 822 | * @pctldev: the pin control device to unhog entries on |
821 | */ | 823 | */ |
822 | void pinctrl_unhog_maps(struct pinctrl_dev *pctldev) | 824 | static void pinctrl_unhog_maps(struct pinctrl_dev *pctldev) |
823 | { | 825 | { |
824 | struct list_head *node, *tmp; | 826 | struct list_head *node, *tmp; |
825 | 827 | ||
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h index a50cdb053c84..7c305672919e 100644 --- a/drivers/pinctrl/core.h +++ b/drivers/pinctrl/core.h | |||
@@ -101,8 +101,5 @@ struct pin_desc { | |||
101 | struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name); | 101 | struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *dev_name); |
102 | struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin); | 102 | struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin); |
103 | int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name); | 103 | int pin_get_from_name(struct pinctrl_dev *pctldev, const char *name); |
104 | int pinctrl_get_device_gpio_range(unsigned gpio, | ||
105 | struct pinctrl_dev **outdev, | ||
106 | struct pinctrl_gpio_range **outrange); | ||
107 | int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, | 104 | int pinctrl_get_group_selector(struct pinctrl_dev *pctldev, |
108 | const char *pin_group); | 105 | const char *pin_group); |