diff options
| author | Andy Shevchenko <[email protected]> | 2024-03-07 15:49:05 +0200 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-04-03 13:07:52 +0200 |
| commit | dbcedec3a31119d7594baacc743300d127c99c56 (patch) | |
| tree | b96f699f882951511707a31ce9461a30e10a512b /include/linux | |
| parent | dd4ced4b689029af0eabb772473ce3bf7bf015fa (diff) | |
gpiolib: legacy: Remove unused gpio_request_array() and gpio_free_array()
No more users.
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Yanteng Si <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gpio.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/gpio.h b/include/linux/gpio.h index 7ecc25c543ce..4aaedcf424ce 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h @@ -114,8 +114,6 @@ static inline int gpio_to_irq(unsigned gpio) } int gpio_request_one(unsigned gpio, unsigned long flags, const char *label); -int gpio_request_array(const struct gpio *array, size_t num); -void gpio_free_array(const struct gpio *array, size_t num); /* CONFIG_GPIOLIB: bindings for managed devices that want to request gpios */ @@ -146,11 +144,6 @@ static inline int gpio_request_one(unsigned gpio, return -ENOSYS; } -static inline int gpio_request_array(const struct gpio *array, size_t num) -{ - return -ENOSYS; -} - static inline void gpio_free(unsigned gpio) { might_sleep(); @@ -159,14 +152,6 @@ static inline void gpio_free(unsigned gpio) WARN_ON(1); } -static inline void gpio_free_array(const struct gpio *array, size_t num) -{ - might_sleep(); - - /* GPIO can never have been requested */ - WARN_ON(1); -} - static inline int gpio_direction_input(unsigned gpio) { return -ENOSYS; |