aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorMarek Belisko <marek.belisko@open-nandra.com>2011-10-31 16:27:52 -0400
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:00 -0500
commit33d58949adee5086478e140751e4a7263bd7e207 (patch)
treed455c04d00fc59f4ecce9e88b99b5d25f683431b /drivers/pinctrl
parent336cdba09a5df706402628fb20b7660d186aff6c (diff)
pinctrl: unify pin type from signed to unsigned
We want singned pins to mean "invalid" only on the outside of the subsystem. Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/core.c2
-rw-r--r--drivers/pinctrl/core.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 9970590006d1..678216652bc0 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -88,7 +88,7 @@ struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
88 return found ? pctldev : NULL; 88 return found ? pctldev : NULL;
89} 89}
90 90
91struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin) 91struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin)
92{ 92{
93 struct pin_desc *pindesc; 93 struct pin_desc *pindesc;
94 unsigned long flags; 94 unsigned long flags;
diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h
index dcc6d687b653..74dee439dcf0 100644
--- a/drivers/pinctrl/core.h
+++ b/drivers/pinctrl/core.h
@@ -65,7 +65,7 @@ struct pin_desc {
65 65
66struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev, 66struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
67 const char *dev_name); 67 const char *dev_name);
68struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin); 68struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin);
69int pinctrl_get_device_gpio_range(unsigned gpio, 69int pinctrl_get_device_gpio_range(unsigned gpio,
70 struct pinctrl_dev **outdev, 70 struct pinctrl_dev **outdev,
71 struct pinctrl_gpio_range **outrange); 71 struct pinctrl_gpio_range **outrange);