Input: adp5588 - add support for gpio names

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>
This commit is contained in:
Jean-François Dagenais 2012-05-10 22:32:00 -07:00 committed by Dmitry Torokhov
parent f77621cc64
commit d0a3457d38
2 changed files with 2 additions and 0 deletions

View File

@ -197,6 +197,7 @@ static int __devinit adp5588_gpio_add(struct adp5588_kpad *kpad)
kpad->gc.base = gpio_data->gpio_start; kpad->gc.base = gpio_data->gpio_start;
kpad->gc.label = kpad->client->name; kpad->gc.label = kpad->client->name;
kpad->gc.owner = THIS_MODULE; kpad->gc.owner = THIS_MODULE;
kpad->gc.names = gpio_data->names;
mutex_init(&kpad->gpio_lock); mutex_init(&kpad->gpio_lock);

View File

@ -157,6 +157,7 @@ struct i2c_client; /* forward declaration */
struct adp5588_gpio_platform_data { struct adp5588_gpio_platform_data {
int gpio_start; /* GPIO Chip base # */ int gpio_start; /* GPIO Chip base # */
const char *const *names;
unsigned irq_base; /* interrupt base # */ unsigned irq_base; /* interrupt base # */
unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
int (*setup)(struct i2c_client *client, int (*setup)(struct i2c_client *client,