HID: wiimote: Add status request
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 6 Sep 2011 11:50:38 +0000 (13:50 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Sep 2011 11:25:18 +0000 (13:25 +0200)
commite3979a9189d744ffecae1bcd36ae0a8b6d22f65f
tree2ee6a3fc8bcffc1662b7c020c619ede27c98a15e
parent0370d7cb30716b202b2412b9b2d4740fd3152d30
HID: wiimote: Add status request

The wiimote does not send status reports continuously so this adds a helper
function to request a status report and parses the battery charge level.

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