diff options
author | Bartosz Golaszewski <[email protected]> | 2015-01-05 15:20:54 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2015-01-25 21:23:59 -0800 |
commit | e794704000cf7954039b8daab9dfae2a74142f07 (patch) | |
tree | fba0eb87a16f494cd99d20b8a7f26ad7cbf45fd2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | f4fe902717f3a3fa10e30544cef97b2ff2811db8 (diff) |
hwmon: (ina2xx) don't accept shunt values greater than the calibration factor
Shunt resistance values greater than the chip's calibration factor make no
sense since the actual value written to the register equals:
<calibration factor> / <shunt>
Bail-out from ina2xx_probe() if the configured value is greater than the
calibration factor.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions