Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marek Belisko and committed by
Linus Walleij
33d58949 336cdba0

+2 -2
+1 -1
drivers/pinctrl/core.c
··· 88 88 return found ? pctldev : NULL; 89 89 } 90 90 91 - struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin) 91 + struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin) 92 92 { 93 93 struct pin_desc *pindesc; 94 94 unsigned long flags;
+1 -1
drivers/pinctrl/core.h
··· 65 65 66 66 struct pinctrl_dev *get_pinctrl_dev_from_dev(struct device *dev, 67 67 const char *dev_name); 68 - struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, int pin); 68 + struct pin_desc *pin_desc_get(struct pinctrl_dev *pctldev, unsigned int pin); 69 69 int pinctrl_get_device_gpio_range(unsigned gpio, 70 70 struct pinctrl_dev **outdev, 71 71 struct pinctrl_gpio_range **outrange);