diff options
author | Keerthy <j-keerthy@ti.com> | 2018-06-13 09:10:37 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-06-18 07:55:30 +0200 |
commit | eb3744a2dd01cb07ce9f556d56d6fe451f0c313a (patch) | |
tree | 0c14eca065d5b66220dc97ffea58ea90e9644900 /include/linux/platform_data/gpio-davinci.h | |
parent | c1d013a70f557e0d6db29398c955b2ec87db1ff8 (diff) | |
download | lwn-eb3744a2dd01cb07ce9f556d56d6fe451f0c313a.tar.gz lwn-eb3744a2dd01cb07ce9f556d56d6fe451f0c313a.zip |
gpio: davinci: Do not assume continuous IRQ numbering
Currently the driver assumes that the interrupts are continuous
and does platform_get_irq only once and assumes the rest are continuous,
instead call platform_get_irq for all the interrupts and store them
in an array for later use.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/platform_data/gpio-davinci.h')
-rw-r--r-- | include/linux/platform_data/gpio-davinci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h index 90ae19ca828f..57a5a35e0073 100644 --- a/include/linux/platform_data/gpio-davinci.h +++ b/include/linux/platform_data/gpio-davinci.h @@ -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; }; |