]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Input: xpad - set correct controller type for Acer NGR200
authorNilton Perim Neto <niltonperimneto@gmail.com>
Sun, 20 Jul 2025 05:07:36 +0000 (22:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Jul 2025 05:15:29 +0000 (22:15 -0700)
The controller should have been set as XTYPE_XBOX360 and not XTYPE_XBOX.
Also the entry is in the wrong place. Fix it.

Reported-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Nilton Perim Neto <niltonperimneto@gmail.com>
Link: https://lore.kernel.org/r/20250708033126.26216-2-niltonperimneto@gmail.com
Fixes: 22c69d786ef8 ("Input: xpad - support Acer NGR 200 Controller")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c

index 5d9b7007a730886db9aee54a97830f256a16f42a..1d8c579b54331e9be970771058782776f45f6fe5 100644 (file)
@@ -172,12 +172,12 @@ static const struct xpad_device {
        { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
        { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
        { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
+       { 0x0502, 0x1305, "Acer NGR200", 0, XTYPE_XBOX360 },
        { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
        { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
        { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
        { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
        { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
-       { 0x0502, 0x1305, "Acer NGR200", 0, XTYPE_XBOX },
        { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
        { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
        { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },