]> Pileus Git - ~andy/linux/commitdiff
Input: walkera0701 - set up input device's parent
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 15 Dec 2012 07:13:24 +0000 (23:13 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 22 Jan 2013 01:31:50 +0000 (17:31 -0800)
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>
drivers/input/joystick/walkera0701.c

index f8f892b076e8e229e45762fd39c5d8bea74f73c5..38386ce62a47c44044d8d5d129aaf20fba4ef975 100644 (file)
@@ -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;