Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4146067 authored by Anssi Hannula's avatar Anssi Hannula Committed by Jiri Kosina
Browse files

hid: allow force feedback for multi-input devices



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: default avatarAnssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 62d0cfcb
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);