Skip to content

Commit b8374b8

Browse files
larsclausendtor
authored andcommitted
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>
1 parent 6d45d3e commit b8374b8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/input/keyboard/adp5589-keys.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad)
505505
if (!gpio_data)
506506
return 0;
507507

508+
kpad->gc.parent = dev;
508509
kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata);
509510
if (kpad->gc.ngpio == 0) {
510511
dev_info(dev, "No unused gpios left to export\n");

0 commit comments

Comments
 (0)