aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2013-12-12 08:05:32 +0100
committerJean Delvare <[email protected]>2013-12-12 08:05:32 +0100
commit33a7ab91d509fa33b4bcd3ce0038cc80298050da (patch)
tree1fbadcdac126109d49f064b41e236f26dfc1dd5b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentcf7559bc053471f32373d71d04a9aa19e0b48d59 (diff)
hwmon: (w83l768ng) Fix fan speed control range
The W83L786NG stores the fan speed on 4 bits while the sysfs interface uses a 0-255 range. Thus the driver should scale the user input down to map it to the device range, and scale up the value read from the device before presenting it to the user. The reserved register nibble should be left unchanged. Signed-off-by: Jean Delvare <[email protected]> Cc: [email protected] Reviewed-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions