summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorGrant Likely2012-05-17 21:54:40 +0200
committerGrant Likely2012-05-19 00:48:36 +0200
commit3d0f7cf0f3633f92ddeb767eb59cab73963d4dee (patch)
treebe23f5d9657d558d690adc84b16bdd6d91668f47 /drivers/gpio/gpiolib.c
parentgpiolib: Implement devm_gpio_request_one() (diff)
downloadkernel-qcow2-linux-3d0f7cf0f3633f92ddeb767eb59cab73963d4dee.tar.gz
kernel-qcow2-linux-3d0f7cf0f3633f92ddeb767eb59cab73963d4dee.tar.xz
kernel-qcow2-linux-3d0f7cf0f3633f92ddeb767eb59cab73963d4dee.zip
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>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 566d0122d832..38353c028fdd 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1156,7 +1156,7 @@ EXPORT_SYMBOL_GPL(gpiochip_remove);
*/
struct gpio_chip *gpiochip_find(const void *data,
int (*match)(struct gpio_chip *chip,
- const void *data))
+ void *data))
{
struct gpio_chip *chip = NULL;
unsigned long flags;