diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/gpio.h | 6 | ||||
| -rw-r--r-- | include/linux/gpio.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h index 2b84fc32fae2..ec58fdbddb59 100644 --- a/include/asm-generic/gpio.h +++ b/include/asm-generic/gpio.h | |||
| @@ -283,14 +283,16 @@ struct gpio_pin_range { | |||
| 283 | }; | 283 | }; |
| 284 | 284 | ||
| 285 | int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, | 285 | int gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, |
| 286 | unsigned int pin_base, unsigned int npins); | 286 | unsigned int offset, unsigned int pin_base, |
| 287 | unsigned int npins); | ||
| 287 | void gpiochip_remove_pin_ranges(struct gpio_chip *chip); | 288 | void gpiochip_remove_pin_ranges(struct gpio_chip *chip); |
| 288 | 289 | ||
| 289 | #else | 290 | #else |
| 290 | 291 | ||
| 291 | static inline int | 292 | static inline int |
| 292 | gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, | 293 | gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, |
| 293 | unsigned int pin_base, unsigned int npins) | 294 | unsigned int offset, unsigned int pin_base, |
| 295 | unsigned int npins) | ||
| 294 | { | 296 | { |
| 295 | return 0; | 297 | return 0; |
| 296 | } | 298 | } |
diff --git a/include/linux/gpio.h b/include/linux/gpio.h index 7ba2762abbc9..99861c65dd8b 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h | |||
| @@ -233,7 +233,8 @@ static inline int irq_to_gpio(unsigned irq) | |||
| 233 | 233 | ||
| 234 | static inline int | 234 | static inline int |
| 235 | gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, | 235 | gpiochip_add_pin_range(struct gpio_chip *chip, const char *pinctl_name, |
| 236 | unsigned int pin_base, unsigned int npins) | 236 | unsigned int offset, unsigned int pin_base, |
| 237 | unsigned int npins) | ||
| 237 | { | 238 | { |
| 238 | WARN_ON(1); | 239 | WARN_ON(1); |
| 239 | return -EINVAL; | 240 | return -EINVAL; |
