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 | cb544f1fd3e573b077a175bb117c4782c4eeacf7 (patch) | |
tree | 2ac9adba8fd6abd3ac550250d5a724a08150a5ff /target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx | |
parent | 84cac8c91b4c6defd29c8010f14197a850bc1c8e (diff) | |
download | upstream-cb544f1fd3e573b077a175bb117c4782c4eeacf7.tar.gz upstream-cb544f1fd3e573b077a175bb117c4782c4eeacf7.tar.bz2 upstream-cb544f1fd3e573b077a175bb117c4782c4eeacf7.zip |
ar71xx: move irq_to_gpio and gpio_to_irq into gpio.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29713 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx')
-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 6354d68cf3..56fe902e26 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) { |