Skip to content

Commit d0a3457

Browse files
jeff-dagenaisdtor
authored andcommitted
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>
1 parent f77621c commit d0a3457

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/input/keyboard/adp5588-keys.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ static int __devinit adp5588_gpio_add(struct adp5588_kpad *kpad)
197197
kpad->gc.base = gpio_data->gpio_start;
198198
kpad->gc.label = kpad->client->name;
199199
kpad->gc.owner = THIS_MODULE;
200+
kpad->gc.names = gpio_data->names;
200201

201202
mutex_init(&kpad->gpio_lock);
202203

include/linux/i2c/adp5588.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ struct i2c_client; /* forward declaration */
157157

158158
struct adp5588_gpio_platform_data {
159159
int gpio_start; /* GPIO Chip base # */
160+
const char *const *names;
160161
unsigned irq_base; /* interrupt base # */
161162
unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
162163
int (*setup)(struct i2c_client *client,

0 commit comments

Comments
 (0)