HID: picoLCD: use proper device as input_dev parent
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
f2df5b7839
commit
eb9001cd8f
|
@ -446,7 +446,7 @@ static int picolcd_init_keys(struct picolcd_data *data,
|
|||
idev->id.vendor = hdev->vendor;
|
||||
idev->id.product = hdev->product;
|
||||
idev->id.version = hdev->version;
|
||||
idev->dev.parent = hdev->dev.parent;
|
||||
idev->dev.parent = &hdev->dev;
|
||||
idev->keycode = &data->keycode;
|
||||
idev->keycodemax = PICOLCD_KEYS;
|
||||
idev->keycodesize = sizeof(data->keycode[0]);
|
||||
|
|
Loading…
Reference in a new issue