Input: xpad - factor out URB submission in xpad_play_effect
authorPavel Rojtberg <rojtberg@gmail.com>
Sat, 10 Oct 2015 16:32:55 +0000 (09:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Oct 2015 18:27:29 +0000 (11:27 -0700)
commit060081529c64cfa9baa2748a4b949159e700da0d
treef871c2f9b4f02b9f8c23cfcc45dc0c6e8856df38
parenta306a65f46acb040d208523592a2d34f67d47a61
Input: xpad - factor out URB submission in xpad_play_effect

Move submission logic to a single point at the end of the function.
This makes it easy to add locking/ queuing code later on.

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c