HID: wiimote: Enable NO_INIT_REPORTS quirk
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 17 Nov 2011 13:12:14 +0000 (14:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 22 Nov 2011 22:11:34 +0000 (23:11 +0100)
Newer bluetooth stack supports the NO_INIT_REPORTS quirk. The wiimote does not
support report initialization so enable it by default.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote-core.c

index 0cb391d2f04a6264156464a27986e6efdb0c6538..61881b35c6702fa976b6e289cefb74ebbbe0ec4b 100644 (file)
@@ -1175,6 +1175,8 @@ static int wiimote_hid_probe(struct hid_device *hdev,
        struct wiimote_data *wdata;
        int ret;
 
+       hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
+
        wdata = wiimote_create(hdev);
        if (!wdata) {
                hid_err(hdev, "Can't alloc device\n");