aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJason Gerecke <[email protected]>2017-04-28 16:25:30 +0000
committerJiri Kosina <[email protected]>2017-05-05 19:46:09 +0000
commit37d1601938349e79e9c31a8aba431d5543e09e72 (patch)
treef36bdb6b0f3af60a8467958b6ae430840da31eed /net/unix/af_unix.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jik... (diff)
downloadkernel-37d1601938349e79e9c31a8aba431d5543e09e72.tar.gz
kernel-37d1601938349e79e9c31a8aba431d5543e09e72.zip
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions