diff options
author | Jason Gerecke <killertofu@gmail.com> | 2017-04-28 19:25:30 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-05-05 22:46:09 +0300 |
commit | 37d1601938349e79e9c31a8aba431d5543e09e72 (patch) | |
tree | f36bdb6b0f3af60a8467958b6ae430840da31eed /scripts/prune-kernel | |
parent | 7af4c727c7b6104f94f2ffc3d0899e75a9cc1e55 (diff) | |
download | linux-37d1601938349e79e9c31a8aba431d5543e09e72.tar.xz |
HID: wacom: generic: Scale battery capacity measurements to percentages
The power_supply subsystem expects us to provide it with capacity values
measured in percent. In particular, AES devices (HID_DG_BATTERYSTRENGTH)
use the range 0-255, which needs to be rescaled. The MobileStudio Pro
(WACOM_HID_WD_BATTERY_LEVEL) uses the range 0-100, but there's no guarantee
that future devices will share the same range.
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 'scripts/prune-kernel')
0 files changed, 0 insertions, 0 deletions