diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-16 18:40:36 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-19 02:20:30 +0300 |
commit | d7f7764e02ad8c4c8919b2484212aca788001765 (patch) | |
tree | 854c1e2427064ae417d3495f20ef49d780e3cb0c /drivers/gpio/gpio-ks8695.c | |
parent | ee2204a37957daed80418ea8ffc4f5c3146fb8e7 (diff) | |
download | linux-d7f7764e02ad8c4c8919b2484212aca788001765.tar.xz |
gpio: ks8695: remove irq_to_gpio function
The ks8695 gpio driver has its own copy of the irq_to_gpio()
function. This is completely unused in the mainline kernel
after we converted all remaining users several years ago,
so we can remove the definition as well.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ks8695.c')
-rw-r--r-- | drivers/gpio/gpio-ks8695.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-ks8695.c b/drivers/gpio/gpio-ks8695.c index 9f86ed9c753b..179723d02f55 100644 --- a/drivers/gpio/gpio-ks8695.c +++ b/drivers/gpio/gpio-ks8695.c @@ -205,18 +205,6 @@ static int ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) return gpio_irq[pin]; } -/* - * Map IRQ number to GPIO line. - */ -int irq_to_gpio(unsigned int irq) -{ - if ((irq < KS8695_IRQ_EXTERN0) || (irq > KS8695_IRQ_EXTERN3)) - return -EINVAL; - - return (irq - KS8695_IRQ_EXTERN0); -} -EXPORT_SYMBOL(irq_to_gpio); - /* GPIOLIB interface */ static struct gpio_chip ks8695_gpio_chip = { |