aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorJason Gerecke <[email protected]>2017-04-28 09:25:30 -0700
committerJiri Kosina <[email protected]>2017-05-05 21:46:09 +0200
commit37d1601938349e79e9c31a8aba431d5543e09e72 (patch)
treef36bdb6b0f3af60a8467958b6ae430840da31eed /lib/netdev-notifier-error-inject.c
parent7af4c727c7b6104f94f2ffc3d0899e75a9cc1e55 (diff)
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 <[email protected]> Reviewed-by: Ping Cheng <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions