HID: wacom: generic: Report AES battery information
authorJason Gerecke <killertofu@gmail.com>
Fri, 28 Apr 2017 16:25:32 +0000 (09:25 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 5 May 2017 19:46:09 +0000 (21:46 +0200)
When support for the HID_DG_BATTERYSTRENGTH usage was added for AES devices,
it appears that the value was read, but never actually forwarded to the
power_supply subystem for userspace's benefit. Let's correct that.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c

index 70a9e47b215a526eaec31f3dab73740f3c88d531..3e034506778f7f7efbd2ccc6fa2f7079942d4536 100644 (file)
@@ -2177,6 +2177,8 @@ static void wacom_wac_pen_report(struct hid_device *hdev,
                input_sync(input);
        }
 
+       wacom_wac_pad_battery_report(hdev, report);
+
        if (!prox) {
                wacom_wac->tool[0] = 0;
                wacom_wac->id[0] = 0;