HID: wacom: Provide battery charge state to system over USB if available
authorJason Gerecke <killertofu@gmail.com>
Fri, 6 Mar 2015 19:47:41 +0000 (11:47 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Mar 2015 15:46:12 +0000 (11:46 -0400)
commit8f93b0b2b0a336746adc8730921b219f0ba40c29
tree290aaf611dce08c323e74da32e61770ba2465625
parentfce9957d8f618346b76c63066e146fc76ed975ce
HID: wacom: Provide battery charge state to system over USB if available

If a wireless adapter (which contains the charging circuitry) is
detected as being attached to the tablet then create a new battery
interface and update its status as data is reported. Also destroy the
battery if the adapter goes away.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c