aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/gpio.h
diff options
context:
space:
mode:
authorChristian Ruppert <christian.ruppert@abilis.com>2013-10-15 09:37:54 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-10-16 09:33:50 -0400
commit586a87e6edc936d6d3c3585af504b33b9c3f0a06 (patch)
treee3a8b9960ef9b6f9e28eaf235790889f5ddf886e /include/asm-generic/gpio.h
parentc8ce878206076b159ee9488133aa51314570da38 (diff)
pinctrl/gpio: non-linear GPIO ranges accesible from gpiolib
This patch adds the infrastructure required to register non-linear gpio ranges through gpiolib and the standard GPIO device tree bindings. Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/asm-generic/gpio.h')
-rw-r--r--include/asm-generic/gpio.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index bde646995d10..523f40525535 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -228,6 +228,9 @@ struct gpio_pin_range {
228int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, 228int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
229 unsigned int gpio_offset, unsigned int pin_offset, 229 unsigned int gpio_offset, unsigned int pin_offset,
230 unsigned int npins); 230 unsigned int npins);
231int gpiochip_add_pingroup_range(struct gpio_chip *chip,
232 struct pinctrl_dev *pctldev,
233 unsigned int gpio_offset, const char *pin_group);
231void gpiochip_remove_pin_ranges(struct gpio_chip *chip); 234void gpiochip_remove_pin_ranges(struct gpio_chip *chip);
232 235
233#else 236#else
@@ -239,6 +242,13 @@ gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name,
239{ 242{
240 return 0; 243 return 0;
241} 244}
245static inline int
246gpiochip_add_pingroup_range(struct gpio_chip *chip,
247 struct pinctrl_dev *pctldev,
248 unsigned int gpio_offset, const char *pin_group)
249{
250 return 0;
251}
242 252
243static inline void 253static inline void
244gpiochip_remove_pin_ranges(struct gpio_chip *chip) 254gpiochip_remove_pin_ranges(struct gpio_chip *chip)