]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wiimote: parse reduced status reports
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 2 Apr 2013 17:58:36 +0000 (19:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Apr 2013 07:38:43 +0000 (09:38 +0200)
commit32fae7a86c87deb740b95838a7e4a44edaab3ba3
tree6f172c6332daf6c456dcefd61821ae6071c6194a
parent741cd89a9f1d1a856cdd950189fb6a9cf158f248
HID: wiimote: parse reduced status reports

It turns out the Wii accepts any status reports from clients reduced to
"BB BB" key data only, as long as the report actually includes key data at
the first two bytes.

The official devices don't send these reduced reports, but of course, 3rd
party devices make great use of this feature.

Hence, add parsers for these reduced reports for every matching report.
Also change the logic how we find handlers. There is no reason to call
multiple handlers on a single report, but instead find the best handler
and call it only once.

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