提交 a7758702 编写于 作者: J Jason Gerecke 提交者: Jiri Kosina

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: NJason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: NPing Cheng <ping.cheng@wacom.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 f496c09c
...@@ -2177,6 +2177,8 @@ static void wacom_wac_pen_report(struct hid_device *hdev, ...@@ -2177,6 +2177,8 @@ static void wacom_wac_pen_report(struct hid_device *hdev,
input_sync(input); input_sync(input);
} }
wacom_wac_pad_battery_report(hdev, report);
if (!prox) { if (!prox) {
wacom_wac->tool[0] = 0; wacom_wac->tool[0] = 0;
wacom_wac->id[0] = 0; wacom_wac->id[0] = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册