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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:01 +0000 (09:48 +0100)
commit7e0f79ac79893d87906a8dc96a9255213dd32e05
tree438c7b0a1cf1758364fd002b69e85387f5fda1f3
parent8d20f7d97a0881fc919578f97ce2b4f65abbe94e
Input: xpad - move the input device creation to a new function

[ Upstream commit b8154002cbdfde1aed2f86bd27f5e2c7e832cabb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c