Skip to content

Commit

Permalink
hid: allow force feedback for multi-input devices
Browse files Browse the repository at this point in the history
Allow hid devices with HID_QUIRK_MULTI_INPUT to have force feedback.
This was previously disabled because there were not any force
feedback drivers for such devices. This will change with my upcoming
patch.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Anssi Hannula authored and Jiri Kosina committed Feb 5, 2007
1 parent 62d0cfc commit c414606
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1315,11 +1315,7 @@ static int hid_probe(struct usb_interface *intf, const struct usb_device_id *id)
return -ENODEV;
}

/* This only gets called when we are a single-input (most of the
* time). IOW, not a HID_QUIRK_MULTI_INPUT. The hid_ff_init() is
* only useful in this case, and not for multi-input quirks. */
if ((hid->claimed & HID_CLAIMED_INPUT) &&
!(hid->quirks & HID_QUIRK_MULTI_INPUT))
if ((hid->claimed & HID_CLAIMED_INPUT))
hid_ff_init(hid);

printk(KERN_INFO);
Expand Down

0 comments on commit c414606

Please sign in to comment.