Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
drivers/input/joystick/walkera0701.c
··· 241 241 w->input_dev->id.vendor = 0x0001; 242 242 w->input_dev->id.product = 0x0001; 243 243 w->input_dev->id.version = 0x0100; 244 + w->input_dev->dev.parent = w->parport->dev; 244 245 w->input_dev->open = walkera0701_open; 245 246 w->input_dev->close = walkera0701_close; 246 247