HID: wacom: Intuos4 battery charging changes
commit9d157624035214793c6d06b0512c6ab1a7b39e05
authorPrzemo Firszt <przemo@firszt.eu>
Sat, 29 Jun 2013 09:57:13 +0000 (29 10:57 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Jul 2013 13:04:47 +0000 (4 15:04 +0200)
tree1c697f35a68399d19a473696fe1d47407897775e
parent26e04462c8b78d079d3231396ec72d58a14f114b
HID: wacom: Intuos4 battery charging changes

Intuos4 WL is separately reporting power supply and battery
charging status - now hid-wacom is using that information.
Previously hid-wacom was wrongly treating "battery charging" bit
as "power supply connected". Now it should report battery charging,
battery discharging, battery full and power supply status.

Intuos4 WL sends reports when is in use (obvious) and when unplugging
power supply. If means that if the device is being charged, but it's not
being used it will never report "battery full". The same problem happens
after the device has been connected, but it's not in use - the
battery/ac status will be incorrect. Currently there is no mechanism to
ask the device to send a report containing battery/ac status.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wacom.c