]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: map digitizer battery usage
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Aug 2017 22:38:01 +0000 (15:38 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 2 Aug 2017 08:51:46 +0000 (10:51 +0200)
commit09251ea2c9f34c7b0f780603edfc592a76098351
tree0ad00472eb86320100f7286e7c641b6335535e80
parent3a6ad2db78280a6692a2277acb962cf2554c456e
HID: input: map digitizer battery usage

We already mapped battery strength reports from the generic device
control page, but we did not update capacity from input reports, nor we
mapped the battery strength report from the digitizer page, so let's
implement this now.

Batteries driven by the input reports will now start in "unknown" state,
and will get updated once we receive first report containing battery
strength from the device.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
include/linux/hid.h