diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2019-07-14 14:30:36 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-07-15 09:43:14 -0700 |
commit | b8374b85529d9fb974be80c0809c070398aa8cb2 (patch) | |
tree | a7e97c5190174b0b26c40a0287554024c22cf559 /drivers/input | |
parent | 6d45d3e08b7460d8ae4199a71a5ad271b0d98f83 (diff) | |
download | linux-b8374b85529d9fb974be80c0809c070398aa8cb2.tar.gz linux-b8374b85529d9fb974be80c0809c070398aa8cb2.tar.bz2 linux-b8374b85529d9fb974be80c0809c070398aa8cb2.zip |
Input: adp5589 - initialize GPIO controller parent device
While not strictly required for normal operation setting the GPIO parent
device allows the GPIO framework to generate more verbose debug output for
the GPIO chip.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/keyboard/adp5589-keys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c index 4c05c70a8cf3..4f96a4a99e5b 100644 --- a/drivers/input/keyboard/adp5589-keys.c +++ b/drivers/input/keyboard/adp5589-keys.c @@ -505,6 +505,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad) if (!gpio_data) return 0; + kpad->gc.parent = dev; kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata); if (kpad->gc.ngpio == 0) { dev_info(dev, "No unused gpios left to export\n"); |