Skip to contentSkip to conversation

keyboard: adp5589-keys: Attach device to the gpio chip

PATCH New Richard Röjfors 1 participant 1 message Sep 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

drivers/input/keyboard/adp5589-keys.c +1 -0
index 4d446d5..63a8c85 100644
@@ -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