summaryrefslogtreecommitdiff
path: root/drivers/hid/wacom_wac.c
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-04-28 09:25:32 -0700
committerJiri Kosina <jkosina@suse.cz>2017-05-05 21:46:09 +0200
commita7758702879e68d221cf6dd9844bf5b2a070c8cb (patch)
tree2c5740e53596de382a15bae881551dd3c8a75e9b /drivers/hid/wacom_wac.c
parentf496c09c0785b60fa6b762ad720ba31f6a9de0ac (diff)
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 <jason.gerecke@wacom.com> Reviewed-by: Ping Cheng <ping.cheng@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom_wac.c')
-rw-r--r--drivers/hid/wacom_wac.c2
1 files changed, 2 insertions, 0 deletions
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;