diff options
author | Guenter Roeck <[email protected]> | 2019-06-07 10:23:21 -0700 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2019-06-23 18:33:01 -0700 |
commit | 0d5cc9383eea0835621cd458c34f1209d483e2ef (patch) | |
tree | 34f3cde18942663221e7619079f3a18d6deb09f3 /lib/test_overflow.c | |
parent | f5b20b11bbc230f64c099b12c37121aacf6f0b65 (diff) |
hwmon: (max6650) Simplify alarm handling
Instead of re-reading the alarm register after reporting an alarm,
mark cached values as invalid. While this results in always reading all
data on subsequent reads, it is quite unlikely that such reads will
actually happen before the cache times out. The upside is avoiding
unnecessary unconditional i2c read operations.
Cc: Jean-Francois Dagenais <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions