gpio: ks8695: remove irq_to_gpio function
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 Feb 2016 15:40:36 +0000 (16:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Feb 2016 23:20:30 +0000 (00:20 +0100)
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>
drivers/gpio/gpio-ks8695.c

index 9f86ed9c753b5ecd64efcc74d2ac8e26551b0aa0..179723d02f55928df447955c898db4ec1e8de10f 100644 (file)
@@ -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 = {
This page took 0.024634 seconds and 5 git commands to generate.