Skip to contentSkip to conversation

hid-tmff: Add RGT ff clutch device id

PATCH In review Markus Rathgeb 2 participants 2 messages Mar 13, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid-tmff: Add RGT ff clutch device id

From: Markus Rathgeb

This patch enables force feedback for the "RGT Force Feedback CLUTCH Racing Wheel". It only modifies hid-core.c (hid_blacklist) and hid-tmff.c to add the new USB IDs.

---

b/drivers/hid/hid-core.c renamed from a/drivers/hid/hid-core.c +1 -0
@@ -1347,6 +1347,7 @@ static const struct hid_device_id hid_blacklist[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb323) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb324) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb653) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_TOPSEED, USB_DEVICE_ID_TOPSEED_CYBERLINK) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_TWINHAN, USB_DEVICE_ID_TWINHAN_IR_REMOTE) },
b/drivers/hid/hid-tmff.c renamed from a/drivers/hid/hid-tmff.c +2 -0
index 167ea74..c32f32c 100644
@@ -251,6 +251,8 @@ static const struct hid_device_id tm_devices[] = {
 		.driver_data = (unsigned long)ff_rumble },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb651),	/* FGT Rumble Force Wheel */
 		.driver_data = (unsigned long)ff_rumble },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb653),	/* RGT Force Feedback CLUTCH Raging Wheel */
+		.driver_data = (unsigned long)ff_joystick },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_THRUSTMASTER, 0xb654),	/* FGT Force Feedback Wheel */
 		.driver_data = (unsigned long)ff_joystick },
 	{ }
Signature · 3 lines
Markus Rathgeb
Public Key Server: http://wwwkeys.us.pgp.net/ bzw. hkp://wwwkeys.us.pgp.net/
Public Key Server: http://stinkfoot.org:11371/ bzw. hkp://stinkfoot.org
#1 lore raw
Quoted 6 lines · Markus Rathgeb

From: Markus Rathgeb

This patch enables force feedback for the "RGT Force Feedback CLUTCH Racing Wheel". It only modifies hid-core.c (hid_blacklist) and hid-tmff.c to add the new USB IDs.

I have applied the patch. But ...

b/drivers/hid/hid-core.c

Quoted 2 lines
b/drivers/hid/hid-core.c renamed from a/drivers/hid/hid-core.c +0 -0

... please generate the patches next time in a way that they can be applied using "patch -p1" to kernel tree (note the extraneous "a/a").

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs, Novell Inc.