Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jean-François Dagenais and committed by
Dmitry Torokhov
d0a3457d f77621cc

+2
+1
drivers/input/keyboard/adp5588-keys.c
··· 197 197 kpad->gc.base = gpio_data->gpio_start; 198 198 kpad->gc.label = kpad->client->name; 199 199 kpad->gc.owner = THIS_MODULE; 200 + kpad->gc.names = gpio_data->names; 200 201 201 202 mutex_init(&kpad->gpio_lock); 202 203
+1
include/linux/i2c/adp5588.h
··· 157 157 158 158 struct adp5588_gpio_platform_data { 159 159 int gpio_start; /* GPIO Chip base # */ 160 + const char *const *names; 160 161 unsigned irq_base; /* interrupt base # */ 161 162 unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ 162 163 int (*setup)(struct i2c_client *client,