Input: xpad - move the input device creation to a new function
authorPierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Sat, 10 Oct 2015 16:34:17 +0000 (09:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Oct 2015 18:27:30 +0000 (11:27 -0700)
commitb8154002cbdfde1aed2f86bd27f5e2c7e832cabb
tree5a1949954f6465de9fa0a3be49b230dfeafa6cf8
parent5ee8bda943de20017636845a5c8d7069a4a283b8
Input: xpad - move the input device creation to a new function

To allow us to later create / destroy the input device from the urb
callback, we need to initialize/ deinitialize the input device from a
separate function.  So pull that logic out now to make later patches
more "obvious" as to what they do.

Signed-off-by: "Pierre-Loup A. Griffais" <pgriffais@valvesoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c