Input: xpad - query wireless controller state at init
authorPavel Rojtberg <rojtberg@gmail.com>
Sat, 10 Oct 2015 16:36:17 +0000 (09:36 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Oct 2015 18:27:42 +0000 (11:27 -0700)
commitaba54876bb38dde81abead1ed1936eb04fa30ca9
tree33604411a8a2601a87320ccdce08ef4d2d474b70
parentb8154002cbdfde1aed2f86bd27f5e2c7e832cabb
Input: xpad - query wireless controller state at init

When we initialize the driver/device, we really don't know how many
controllers are connected.  So send a "query presence" command to the
base-station. (Command discovered by Zachary Lund)

Presence packet taken from:

https://github.com/computerquip/xpad5

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