diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-01-11 18:00:50 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-01-11 18:00:50 +0000 |
commit | fbf81c8e799deefec9cc7773aae9e4701dea10d3 (patch) | |
tree | d98adebc7cb77512a48e8f3d92f0e21c5fc4c9d4 /target/linux/ar71xx/files/arch/mips/include/asm | |
parent | 034b7f0ef555c6e5842003f3c06770aa2023a756 (diff) | |
download | mtk-20170518-fbf81c8e799deefec9cc7773aae9e4701dea10d3.zip mtk-20170518-fbf81c8e799deefec9cc7773aae9e4701dea10d3.tar.gz mtk-20170518-fbf81c8e799deefec9cc7773aae9e4701dea10d3.tar.bz2 |
ar71xx: move irq_to_gpio and gpio_to_irq into gpio.c
SVN-Revision: 29713
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/include/asm')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h index 6354d68..56fe902 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h @@ -16,21 +16,11 @@ #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) { |