From: Jason Gerecke Date: Fri, 28 Apr 2017 16:25:32 +0000 (-0700) Subject: HID: wacom: generic: Report AES battery information X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7758702879e68d221cf6dd9844bf5b2a070c8cb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git HID: wacom: generic: Report AES battery information 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 Reviewed-by: Ping Cheng Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 70a9e47b215a..3e034506778f 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -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;