Skip to content

Commit

Permalink
Input: use new FF interface in the HID force feedback drivers
Browse files Browse the repository at this point in the history
Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Anssi Hannula authored and Dmitry Torokhov committed Jul 19, 2006
1 parent 224ee88 commit dc76c91
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 831 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ config HID_PID
config LOGITECH_FF
bool "Logitech WingMan *3D support"
depends on HID_FF
select INPUT_FF_MEMLESS if USB_HID
help
Say Y here if you have one of these devices:
- Logitech WingMan Cordless RumblePad
Expand All @@ -81,6 +82,7 @@ config LOGITECH_FF
config THRUSTMASTER_FF
bool "ThrustMaster FireStorm Dual Power 2 support (EXPERIMENTAL)"
depends on HID_FF && EXPERIMENTAL
select INPUT_FF_MEMLESS if USB_HID
help
Say Y here if you have a THRUSTMASTER FireStore Dual Power 2,
and want to enable force feedback support for it.
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,6 @@ static void hid_free_device(struct hid_device *device)
{
unsigned i,j;

hid_ff_exit(device);

for (i = 0; i < HID_REPORT_TYPES; i++) {
struct hid_report_enum *report_enum = device->report_enum + i;

Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/input/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ static int hidinput_input_event(struct input_dev *dev, unsigned int type, unsign
int offset;

if (type == EV_FF)
return hid_ff_event(hid, dev, type, code, value);
return input_ff_event(dev, type, code, value);

if (type != EV_LED)
return -1;
Expand Down
Loading

0 comments on commit dc76c91

Please sign in to comment.