Skip to contentSkip to conversation

hid: force feedback support for Logitech Rumblepad 2

PATCH New Anssi Hannula 1 participant 1 message Mar 31, 2008

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

PATCH 1/1 hid: force feedback support for Logitech Rumblepad 2

Add force feedback support for Logitech Rumblepad 2.

---

drivers/hid/usbhid/Kconfig +8 -0
Index: linux-2.6.24-hid-rumble/drivers/hid/usbhid/Kconfig
===================================================================
@@ -70,6 +70,14 @@
 	  Note: if you say N here, this device will still be supported, but without
 	  force feedback.
 
+config LOGIRUMBLEPAD2_FF
+	bool "Logitech Rumblepad 2 support"
+	depends on HID_FF
+	select INPUT_FF_MEMLESS if USB_HID
+	help
+	  Say Y here if you want to enable force feedback support for Logitech
+	  Rumblepad 2 devices.
+
 config PANTHERLORD_FF
 	bool "PantherLord/GreenAsia based device support"
 	depends on HID_FF
drivers/hid/usbhid/Makefile +3 -0
Index: linux-2.6.24-hid-rumble/drivers/hid/usbhid/Makefile
===================================================================
@@ -16,6 +16,9 @@
 ifeq ($(CONFIG_LOGITECH_FF),y)
 	usbhid-objs	+= hid-lgff.o
 endif
+ifeq ($(CONFIG_LOGIRUMBLEPAD2_FF),y)
+	usbhid-objs	+= hid-lg2ff.o
+endif
 ifeq ($(CONFIG_PANTHERLORD_FF),y)
 	usbhid-objs	+= hid-plff.o
 endif
drivers/hid/usbhid/hid-ff.c +3 -0
Index: linux-2.6.24-hid-rumble/drivers/hid/usbhid/hid-ff.c
===================================================================
@@ -59,6 +59,9 @@
 	{ 0x46d, 0xc295, hid_lgff_init }, /* Logitech MOMO force wheel */
 	{ 0x46d, 0xca03, hid_lgff_init }, /* Logitech MOMO force wheel */
 #endif
+#ifdef CONFIG_LOGIRUMBLEPAD2_FF
+	{ 0x46d, 0xc218, hid_lg2ff_init }, /* Logitech Rumblepad 2 */
+#endif
 #ifdef CONFIG_PANTHERLORD_FF
 	{ 0x810, 0x0001, hid_plff_init }, /* "Twin USB Joystick" */
 	{ 0xe8f, 0x0003, hid_plff_init }, /* "GreenAsia Inc.    USB Joystick     " */
drivers/hid/usbhid/hid-lg2ff.c +114 -0

114 lines not on this page · raw message

include/linux/hid.h +1 -0
Index: linux-2.6.24-hid-rumble/include/linux/hid.h
===================================================================
@@ -536,6 +536,7 @@
 int hid_ff_init(struct hid_device *hid);
 
 int hid_lgff_init(struct hid_device *hid);
+int hid_lg2ff_init(struct hid_device *hid);
 int hid_plff_init(struct hid_device *hid);
 int hid_tmff_init(struct hid_device *hid);
 int hid_zpff_init(struct hid_device *hid);
Signature · 1 line
Anssi Hannula