From c59778f2b745d3dd5ce497d200ebdc303eaaabf6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 3 Jan 2017 22:40:38 -0800 Subject: [PATCH] Input: xpad - don't depend on endpoint order commit c01b5e7464f0cf20936d7467c7528163c4e2782d upstream. 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 Signed-off-by: Dmitry Torokhov [bwh: Backported to 3.2: - Use 'fail3' label in case of failure - Adjust context] Signed-off-by: Ben Hutchings --- Reading git-format-patch failed