aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-01-17 21:49:14 +0530
committerLinus Walleij <linus.walleij@linaro.org>2017-01-26 10:00:22 +0100
commit8e11047b8f3cc0dc6df956cf01915077a574168e (patch)
tree1ecb8c417b38c93279b687e78865f29eac7ae170 /include/linux/platform_data
parentgpio: davinci: Redesign driver to accommodate ngpios in one gpio chip (diff)
downloadlinux-dev-8e11047b8f3cc0dc6df956cf01915077a574168e.tar.xz
linux-dev-8e11047b8f3cc0dc6df956cf01915077a574168e.zip
gpio: davinci: Add support for multiple GPIO controllers
Update GPIO driver to support Multiple GPIO controllers by updating the base of subsequent GPIO chips with total of previous chips gpio count so that gpio_add_chip gets unique numbers. 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')
-rw-r--r--include/linux/platform_data/gpio-davinci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h
index c62a9438976d..90ae19ca828f 100644
--- a/include/linux/platform_data/gpio-davinci.h
+++ b/include/linux/platform_data/gpio-davinci.h
@@ -42,6 +42,7 @@ struct davinci_gpio_controller {
void __iomem *regs[MAX_REGS_BANKS];
int gpio_unbanked;
unsigned int base_irq;
+ unsigned int base;
};
/*