Skip to content

Commit

Permalink
Input: adp5588 - add support for gpio names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-François Dagenais authored and Dmitry Torokhov committed May 11, 2012
1 parent f77621c commit d0a3457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/keyboard/adp5588-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions include/linux/i2c/adp5588.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d0a3457

Please sign in to comment.