gpio: davinci: Add support for multiple GPIO controllers
authorKeerthy <j-keerthy@ti.com>
Tue, 17 Jan 2017 16:19:14 +0000 (21:49 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 26 Jan 2017 09:00:22 +0000 (10:00 +0100)
commit8e11047b8f3cc0dc6df956cf01915077a574168e
tree1ecb8c417b38c93279b687e78865f29eac7ae170
parentb5cf3fd827d2e11355c126b44ea625650ebf4d39
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>
drivers/gpio/gpio-davinci.c
include/linux/platform_data/gpio-davinci.h