ar71xx: move irq_to_gpio and gpio_to_irq into gpio.c
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / include / asm / mach-ar71xx / gpio.h
index 6354d68cf3ea0b0322831244b8318a2d939fc3ef..56fe902e260e6f4fe46b1f57dfbe5cc312e0f066 100644 (file)
 #define ARCH_NR_GPIOS  64
 #include <asm-generic/gpio.h>
 
-#include <asm/mach-ar71xx/ar71xx.h>
-
 extern unsigned long ar71xx_gpio_count;
 extern void __ar71xx_gpio_set_value(unsigned gpio, int value);
 extern int __ar71xx_gpio_get_value(unsigned gpio);
-
-static inline int gpio_to_irq(unsigned gpio)
-{
-       return AR71XX_GPIO_IRQ(gpio);
-}
-
-static inline int irq_to_gpio(unsigned irq)
-{
-       return irq - AR71XX_GPIO_IRQ_BASE;
-}
+int gpio_to_irq(unsigned gpio);
+int irq_to_gpio(unsigned gpio);
 
 static inline int gpio_get_value(unsigned gpio)
 {