Skip to content

Commit

Permalink
HID: picoLCD: use proper device as input_dev parent
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Bruno Prémont authored and Jiri Kosina committed Sep 5, 2012
1 parent f2df5b7 commit eb9001c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-picolcd_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit eb9001c

Please sign in to comment.