]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
pinctrl: unify pin type from signed to unsigned
authorMarek Belisko <marek.belisko@open-nandra.com>
Mon, 31 Oct 2011 20:27:52 +0000 (21:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Nov 2011 07:58:09 +0000 (08:58 +0100)
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>
drivers/pinctrl/core.c
drivers/pinctrl/core.h

index 9970590006d15e7276fc58fb929e15c21ab1de8b..678216652bc0cf4bbdf0661286109279ffc37a60 100644 (file)
@@ -88,7 +88,7 @@ struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
        return found ? pctldev : NULL;
 }
 
-struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin)
+struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin)
 {
        struct pin_desc *pindesc;
        unsigned long flags;
index dcc6d687b6530e3523b0c690a9a157618b0e71a5..74dee439dcf03ad6a9da8edd65d7385dbd15883b 100644 (file)
@@ -65,7 +65,7 @@ struct pin_desc {
 
 struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev,
                                             const char *dev_name);
-struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin);
+struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin);
 int pinctrl_get_device_gpio_range(unsigned gpio,
                                  struct pinctrl_dev **outdev,
                                  struct pinctrl_gpio_range **outrange);