HID: wiimote: Read wiimote battery charge level
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 6 Sep 2011 11:50:39 +0000 (13:50 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Sep 2011 11:25:18 +0000 (13:25 +0200)
commit6591d758d54291fcc5fd560653edef73d50bd978
tree1b5df45a7d4b175e2a5706c08aee1efed2e78db3
parente3979a9189d744ffecae1bcd36ae0a8b6d22f65f
HID: wiimote: Read wiimote battery charge level

This registers a power_supply device for every remote to retrieve the current
battery charge level. Since this information is not sent by the wiimote
continously, we need to explicitely request it.

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