hid: allow force feedback for multi-input devices
authorAnssi Hannula <anssi.hannula@gmail.com>
Thu, 11 Jan 2007 14:51:16 +0000 (16:51 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Feb 2007 09:00:02 +0000 (10:00 +0100)
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>
drivers/usb/input/hid-core.c

index c6c9e72e5fd9d94a3fada3216e41090b907815d0..2971182bbdf6d396e799f92f4565c776206fe26f 100644 (file)
@@ -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);