]> 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)
commita0a85d8d4c6406a163f33932615bee0280731911
tree0ad00472eb86320100f7286e7c641b6335535e80
parent5a6ed8e4e321710ef9552ca235dcb843d65e3fdf
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