diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-12-15 07:13:24 (GMT) |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-01-22 01:31:50 (GMT) |
commit | 1932c8a0035231ead2130201a69eca7f5d8e2462 (patch) | |
tree | ad5b5432f5394376433fb6e45bebe4e3a6af61b3 /drivers | |
parent | be2d7e4233a4fe439125b825470020cef83407d5 (diff) | |
download | linux-fsl-qoriq-1932c8a0035231ead2130201a69eca7f5d8e2462.tar.xz |
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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/joystick/walkera0701.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/joystick/walkera0701.c b/drivers/input/joystick/walkera0701.c index f8f892b..38386ce 100644 --- a/drivers/input/joystick/walkera0701.c +++ b/drivers/input/joystick/walkera0701.c @@ -241,6 +241,7 @@ static int walkera0701_connect(struct walkera_dev *w, int parport) w->input_dev->id.vendor = 0x0001; w->input_dev->id.product = 0x0001; w->input_dev->id.version = 0x0100; + w->input_dev->dev.parent = w->parport->dev; w->input_dev->open = walkera0701_open; w->input_dev->close = walkera0701_close; |