Input: adp5588 - add support for gpio names
authorJean-François Dagenais <jeff.dagenais@gmail.com>
Fri, 11 May 2012 05:32:00 +0000 (22:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 May 2012 05:34:16 +0000 (22:34 -0700)
Signed-off-by: Jean-François Dagenais <jeff.dagenais@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/adp5588-keys.c
include/linux/i2c/adp5588.h

index 39ebffa..b083bf1 100644 (file)
@@ -197,6 +197,7 @@ static int __devinit adp5588_gpio_add(struct adp5588_kpad *kpad)
        kpad->gc.base = gpio_data->gpio_start;
        kpad->gc.label = kpad->client->name;
        kpad->gc.owner = THIS_MODULE;
+       kpad->gc.names = gpio_data->names;
 
        mutex_init(&kpad->gpio_lock);
 
index cec17cf..d8341cb 100644 (file)
@@ -157,6 +157,7 @@ struct i2c_client; /* forward declaration */
 
 struct adp5588_gpio_platform_data {
        int gpio_start;         /* GPIO Chip base # */
+       const char *const *names;
        unsigned irq_base;      /* interrupt base # */
        unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
        int     (*setup)(struct i2c_client *client,