Changeset 29713


Ignore:
Timestamp:
2012-01-11T19:00:50+01:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: move irq_to_gpio and gpio_to_irq into gpio.c

Location:
trunk/target/linux/ar71xx/files/arch/mips
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c

    r29532 r29713  
    289289                panic("cannot add AR71xx GPIO chip, error=%d", err); 
    290290} 
     291 
     292int gpio_to_irq(unsigned gpio) 
     293{ 
     294        return AR71XX_GPIO_IRQ(gpio); 
     295} 
     296EXPORT_SYMBOL(gpio_to_irq); 
     297 
     298int irq_to_gpio(unsigned irq) 
     299{ 
     300        return irq - AR71XX_GPIO_IRQ_BASE; 
     301} 
     302EXPORT_SYMBOL(irq_to_gpio); 
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/gpio.h

    r25854 r29713  
    1717#include <asm-generic/gpio.h> 
    1818 
    19 #include <asm/mach-ar71xx/ar71xx.h> 
    20  
    2119extern unsigned long ar71xx_gpio_count; 
    2220extern void __ar71xx_gpio_set_value(unsigned gpio, int value); 
    2321extern int __ar71xx_gpio_get_value(unsigned gpio); 
    24  
    25 static inline int gpio_to_irq(unsigned gpio) 
    26 { 
    27         return AR71XX_GPIO_IRQ(gpio); 
    28 } 
    29  
    30 static inline int irq_to_gpio(unsigned irq) 
    31 { 
    32         return irq - AR71XX_GPIO_IRQ_BASE; 
    33 } 
     22int gpio_to_irq(unsigned gpio); 
     23int irq_to_gpio(unsigned gpio); 
    3424 
    3525static inline int gpio_get_value(unsigned gpio) 
Note: See TracChangeset for help on using the changeset viewer.