diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-12 15:39:42 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-01-30 15:55:29 +0100 |
commit | a5ec171efdc6151d3a51c4e1a59abb3ab9d8b710 (patch) | |
tree | 34c2decc74b958375d87c37c330e90e74eba9bbe /include/linux/gpio.h | |
parent | 029d14e900e7766eb2330bd4912dc28c0466db06 (diff) | |
download | linux-stable-a5ec171efdc6151d3a51c4e1a59abb3ab9d8b710.tar.gz linux-stable-a5ec171efdc6151d3a51c4e1a59abb3ab9d8b710.tar.bz2 linux-stable-a5ec171efdc6151d3a51c4e1a59abb3ab9d8b710.zip |
gpio: Remove unused and obsoleted irq_to_gpio()
irq_to_gpio() is legacy and unused API, remove it for good.
This leaves gpio_to_irq() as it's used yet in many places.
Nevertheless, removal of its counterpart is a good signal
to whoever even trying to consider using them that do not.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'include/linux/gpio.h')
-rw-r--r-- | include/linux/gpio.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/gpio.h b/include/linux/gpio.h index e94815b3ce1d..85beb236c925 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h @@ -81,11 +81,6 @@ static inline int gpio_to_irq(unsigned int gpio) return __gpio_to_irq(gpio); } -static inline int irq_to_gpio(unsigned int irq) -{ - return -EINVAL; -} - #endif /* ! CONFIG_ARCH_HAVE_CUSTOM_GPIO_H */ /* CONFIG_GPIOLIB: bindings for managed devices that want to request gpios */ @@ -210,13 +205,6 @@ static inline int gpio_to_irq(unsigned gpio) return -EINVAL; } -static inline int irq_to_gpio(unsigned irq) -{ - /* irq can never have been returned from gpio_to_irq() */ - WARN_ON(1); - return -EINVAL; -} - static inline int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) { |