gpio: davinci: Do not assume continuous IRQ numbering
[muen/linux.git] / include / linux / platform_data / gpio-davinci.h
index 90ae19ca828f70927a13cb593aba39d52cf188cf..57a5a35e0073aedf560a53f7581996b21e652835 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm-generic/gpio.h>
 
 #define MAX_REGS_BANKS         5
+#define MAX_INT_PER_BANK 32
 
 struct davinci_gpio_platform_data {
        u32     ngpio;
@@ -41,7 +42,7 @@ struct davinci_gpio_controller {
        spinlock_t              lock;
        void __iomem            *regs[MAX_REGS_BANKS];
        int                     gpio_unbanked;
-       unsigned int            base_irq;
+       int                     irqs[MAX_INT_PER_BANK];
        unsigned int            base;
 };