HID: wiimote: add MP quirks
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 5 May 2013 21:13:07 +0000 (23:13 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Jun 2013 09:07:06 +0000 (11:07 +0200)
commit9f329741a6d7253f044677af00a999b47e85721e
tree83e95fb89963553dc418c09022ffb138518e7133
parent45ec9fff8629dda47d0c7645174220bcf5d9b6ba
HID: wiimote: add MP quirks

Devices which have built-in motion plus ports don't need MP detection
logic. The new WIIMOD_BUILTIN_MP modules sets the WIIPROTO_FLAG_BUILTIN_MP
flag which disables polling for MP.

Some other devices erroneously report that they support motion-plus. For
these devices and all devices without extension ports, we load
WIIMOD_NO_MP which sets WIIPROTO_FLAG_NO_MP. This effectively disables all
MP detection logic.

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