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

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>

authored by

Lars-Peter Clausen and committed by
Dmitry Torokhov
b8374b85 6d45d3e0

+1
+1
drivers/input/keyboard/adp5589-keys.c
··· 505 505 if (!gpio_data) 506 506 return 0; 507 507 508 + kpad->gc.parent = dev; 508 509 kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata); 509 510 if (kpad->gc.ngpio == 0) { 510 511 dev_info(dev, "No unused gpios left to export\n");