* [PATCH] keyboard: adp5589-keys: Attach device to the gpio chip
@ 2015-09-10 14:07 Richard Röjfors
0 siblings, 0 replies; only message in thread
From: Richard Röjfors @ 2015-09-10 14:07 UTC (permalink / raw)
To: linux-input
Currently the device struct is not attached to the gpio chip struct.
This causes trouble if the GPIO pins are used in a device tree, because
the device struct is heavily used during gpio chip lookup and matching.
Signed-off-by: Richard Röjfors <richard.rojfors@gmail.com>
---
diff --git a/drivers/input/keyboard/adp5589-keys.c b/drivers/input/keyboard/adp5589-keys.c
index 4d446d5..63a8c85 100644
--- a/drivers/input/keyboard/adp5589-keys.c
+++ b/drivers/input/keyboard/adp5589-keys.c
@@ -522,6 +522,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad)
kpad->gc.base = gpio_data->gpio_start;
kpad->gc.label = kpad->client->name;
kpad->gc.owner = THIS_MODULE;
+ kpad->gc.dev = dev;
mutex_init(&kpad->gpio_lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-10 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 14:07 [PATCH] keyboard: adp5589-keys: Attach device to the gpio chip Richard Röjfors
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.