keyboard: adp5589-keys: Attach device to the gpio chip
Subsystems (2)
PATCH 1/1 keyboard: adp5589-keys: Attach device to the gpio chip
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 <[email protected]>
---
drivers/input/keyboard/adp5589-keys.c +1 -0
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html