]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: Adjust of_xlate API to support multiple GPIO chips
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 17 May 2012 19:54:40 +0000 (13:54 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 18 May 2012 22:48:36 +0000 (16:48 -0600)
commit3d0f7cf0f3633f92ddeb767eb59cab73963d4dee
treebe23f5d9657d558d690adc84b16bdd6d91668f47
parent09d71ff19404b3957fab6de942fb8026ccfd8524
gpio: Adjust of_xlate API to support multiple GPIO chips

This patch changes the of_xlate API to make it possible for multiple
gpio_chips to refer to the same device tree node.  This is useful for
banked GPIO controllers that use multiple gpio_chips for a single
device.  With this change the core code will try calling of_xlate on
each gpio_chip that references the device_node and will return the
gpio number for the first one to return 'true'.

Tested-by: Roland Stigge <stigge@antcom.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/mach-imx/mach-mx35_3ds.c
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h
include/linux/of_gpio.h