Skip to contentSkip to conversation

xpad: Add RedOctane Games vendor id

PATCH In review Sanjay Govind 2 participants 4 messages Mar 11 – Apr 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xpad: Add RedOctane Games vendor id

Add vendor ID for RedOctane Games to xpad

---
 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/xpad.c +1 -0
index bf4accf3f581..e97ff270d978 100644
@@ -585,6 +585,7 @@ static const struct usb_device_id xpad_table[] = {
 	XPAD_XBOX360_VENDOR(0x3651),		/* CRKD Controllers */
 	XPAD_XBOXONE_VENDOR(0x366c),		/* ByoWave controllers */
 	XPAD_XBOX360_VENDOR(0x37d7),		/* Flydigi Controllers */
+	XPAD_XBOX360_VENDOR(0x3958),		/* RedOctane Games Controllers */
 	XPAD_XBOX360_VENDOR(0x413d),		/* Black Shark Green Ghost Controller */
 	{ }
 };
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 12 lines · Sanjay Govind

Add vendor ID for RedOctane Games to xpad

---
 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)
drivers/input/joystick/xpad.c +0 -0
index bf4accf3f581..e97ff270d978 100644

drivers/input/joystick/xpad.c static const struct usb_device_id xpad_table[] = { · line 591

Quoted 7 lines
drivers/input/joystick/xpad.c +1 -0
@@ -585,6 +585,7 @@ static const struct usb_device_id xpad_table[] = {
 	XPAD_XBOX360_VENDOR(0x3651),		/* CRKD Controllers */
 	XPAD_XBOXONE_VENDOR(0x366c),		/* ByoWave controllers */
 	XPAD_XBOX360_VENDOR(0x37d7),		/* Flydigi Controllers */
+	XPAD_XBOX360_VENDOR(0x3958),		/* RedOctane Games Controllers */
 	XPAD_XBOX360_VENDOR(0x413d),		/* Black Shark Green Ghost Controller */
 	{ }
 };

Don't we also need to add some entries to the xpad_device table?

Thanks.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 1 line · Dmitry Torokhov

Don't we also need to add some entries to the xpad_device table?

It's not strictly necessary, xpad will pick the devices up with just the vendor id, since they have the correct class, subclass and protocol needed for matching, you only really need to put them into xpad_device if you want to customize the name or give it different flags, and that isn't necessary for these devices. A few of these devices are still in development, so we don't have PIDs assigned yet.

maintainer
#3 lore raw
Quoted 10 lines · Sanjay Govind
Quoted 1 line · Dmitry Torokhov

Don't we also need to add some entries to the xpad_device table?

It's not strictly necessary, xpad will pick the devices up with just the vendor id, since they have the correct class, subclass and protocol needed for matching, you only really need to put them into xpad_device if you want to customize the name or give it different flags, and that isn't necessary for these devices. A few of these devices are still in development, so we don't have PIDs assigned yet.

OK, I'll queue it to the next release then.

Thanks.

Signature · 1 line
Dmitry