summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2019-07-14 23:30:36 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-07-15 18:43:14 +0200
commitb8374b85529d9fb974be80c0809c070398aa8cb2 (patch)
treea7e97c5190174b0b26c40a0287554024c22cf559 /drivers/input/keyboard
parentInput: iforce - remove empty multiline comments (diff)
downloadlinux-b8374b85529d9fb974be80c0809c070398aa8cb2.tar.xz
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/keyboard')
-rw-r--r--drivers/input/keyboard/adp5589-keys.c1
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");