]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - don't depend on endpoint order
authorCameron Gutman <aicommander@gmail.com>
Wed, 4 Jan 2017 06:40:38 +0000 (22:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Jan 2017 18:31:51 +0000 (10:31 -0800)
commit9b7c47ed1d56e34b044f54cc744dd6105249b886
tree04e599d1b79f15e51a32a1cb8b3ed9c7b8c85f39
parent7266f5869eed7944662cc15f04ac2b293f281612
Input: xpad - don't depend on endpoint order

The order of endpoints is well defined on official Xbox pads, but
we have found at least one 3rd-party pad that doesn't follow the
standard ("Titanfall 2 Xbox One controller" 0e6f:0165).

Fortunately, we get lucky with this specific pad because it uses
endpoint addresses that differ only by direction. We know that
there are other pads out where this is not true, so let's go
ahead and fix this.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c