Thread (25 messages) 25 messages, 3 authors, 2011-11-17

[PATCH 16/16] HID: wiimote: Enable NO_INIT_REPORTS quirk

flat view
STALE5449d

From: David Herrmann <hidden>
Date: 2011-11-13 13:28:18
Subsystem: hid core layer, the rest, wiimote hid driver · Maintainers: Jiri Kosina, Benjamin Tissoires, Linus Torvalds, David Rheinsberg

Newer bluetooth core supports the NO_INIT_REPORTS quirk. We need this for the
wiimote as it does not support report-initialization.
Also bump version level as we are almost feature complete now.

Signed-off-by: David Herrmann <redacted>
---
 drivers/hid/hid-wiimote-core.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 745667e..7ea8754 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -22,7 +22,7 @@
 #include "hid-ids.h"
 #include "hid-wiimote.h"
 
-#define WIIMOTE_VERSION "0.2"
+#define WIIMOTE_VERSION "0.3"
 
 enum wiiproto_keys {
 	WIIPROTO_KEY_LEFT,
@@ -1177,6 +1177,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");
-- 
1.7.7.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help