diff options
author | Daniel Matyas <[email protected]> | 2023-09-19 12:34:49 +0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2023-10-28 09:21:36 -0700 |
commit | 9ca6696718cc3f8ca94172d834567f35500f21bf (patch) | |
tree | 4d919640e4eca1669cd95e046689a5438319d9cf /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | b344041db783c4cb1e1944a1d5eae6651af72483 (diff) |
hwmon: (max31827) Make code cleaner
Used enums and while loops to replace switch for selecting and getting
update interval from conversion rate bits.
Divided the write_alarm_val function into 2 functions. The new function
is more generic: it can be used not only for alarm writes, but for any
kind of writes which require the device to be in shutdown mode.
Signed-off-by: Daniel Matyas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Reverted error return value change (EOPNOTSUPP -> EINVAL)]
Signed-off-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