From: David Herrmann <dh.herrmann@googlemail.com>
To: linux-input@vger.kernel.org
Cc: Peter Olson <peter.olson@gmail.com>,
Jiri Kosina <jkosina@suse.cz>,
David Herrmann <dh.herrmann@googlemail.com>
Subject: [PATCH] HID: wiimote: add Nintendo-Wii-Remote-Plus IDs
Date: Mon, 22 Oct 2012 10:37:51 +0200 [thread overview]
Message-ID: <1350895071-4017-1-git-send-email-dh.herrmann@googlemail.com> (raw)
The newest revision of the Nintendo Wii Remote Plus uses new VID/PIDs. We
already support these devices so we can simply add the IDs.
Reported-by: Peter Olson <peter.olson@gmail.com>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
---
Hi Jiri
I am actually not sure why Nintendo changed the VID/PID for the newest
revisions. I have a WiimotePlus which uses the old IDs and works fine. However,
the Windows WiiMote driver developers reported to me that the protocol stayed
the same so I just added the IDs.
Please wait before applying this until I get a "Tested-by" from Peter (CC'ed).
Thanks
David
drivers/hid/hid-ids.h | 1 +
drivers/hid/hid-wiimote-core.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 753f3d6..b5c2231 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -583,6 +583,7 @@
#define USB_VENDOR_ID_NINTENDO 0x057e
#define USB_DEVICE_ID_NINTENDO_WIIMOTE 0x0306
+#define USB_DEVICE_ID_NINTENDO_WIIMOTE_2 0x0330
#define USB_VENDOR_ID_NOVATEK 0x0603
#define USB_DEVICE_ID_NOVATEK_PCT 0x0600
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 84e2fbe..c8a4325 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -1283,6 +1283,8 @@ static void wiimote_hid_remove(struct hid_device *hdev)
static const struct hid_device_id wiimote_hid_devices[] = {
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO,
USB_DEVICE_ID_NINTENDO_WIIMOTE) },
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_NINTENDO,
+ USB_DEVICE_ID_NINTENDO_WIIMOTE_2) },
{ }
};
MODULE_DEVICE_TABLE(hid, wiimote_hid_devices);
--
1.7.12.4
next reply other threads:[~2012-10-22 8:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 8:37 David Herrmann [this message]
2012-10-22 9:36 ` [PATCH] HID: wiimote: add Nintendo-Wii-Remote-Plus IDs Jiri Kosina
2012-10-23 4:42 ` Peter Olson
2012-10-24 18:42 ` David Herrmann
2012-11-01 4:46 ` Peter Olson
2012-11-12 6:19 ` Peter Olson
2012-11-12 12:41 ` David Herrmann
2012-11-13 2:53 ` Peter Olson
2012-11-15 12:36 ` David Herrmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1350895071-4017-1-git-send-email-dh.herrmann@googlemail.com \
--to=dh.herrmann@googlemail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=peter.olson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).