Commit 1932c8a0 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: walkera0701 - set up input device's parent

This will place the joystick's input device into propoer place in sysfs
hierarchy as long as th port has device assigned to it (i.e. it is not
legacy port).
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent be2d7e42
...@@ -241,6 +241,7 @@ static int walkera0701_connect(struct walkera_dev *w, int parport) ...@@ -241,6 +241,7 @@ static int walkera0701_connect(struct walkera_dev *w, int parport)
w->input_dev->id.vendor = 0x0001; w->input_dev->id.vendor = 0x0001;
w->input_dev->id.product = 0x0001; w->input_dev->id.product = 0x0001;
w->input_dev->id.version = 0x0100; w->input_dev->id.version = 0x0100;
w->input_dev->dev.parent = w->parport->dev;
w->input_dev->open = walkera0701_open; w->input_dev->open = walkera0701_open;
w->input_dev->close = walkera0701_close; w->input_dev->close = walkera0701_close;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment