diff options
author | Guenter Roeck <[email protected]> | 2011-09-10 06:02:12 -0700 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2011-09-13 06:19:15 -0700 |
commit | 40257b953fdd519c743138f3fbe3962d54991116 (patch) | |
tree | 2e4e8e368b262648d7d96fbd9af4b012551df282 /net/unix/sysctl_net_unix.c | |
parent | b6fd41e29dea9c6753b1843a77e50433e6123bcb (diff) |
hwmon: (pmbus) Fix low limit temperature alarms
Temperature alarms are detected by checking the alarm bit and comparing
temperature limits against the current temperature. For low limits, this
comparison needs to be reversed (temp < limit instead of temp > limit).
This was not taken into account, resulting in wrong alarms if a temperature
fell below a low limit.
Fix by adding a low limit flag in the limit data structure. When creating the
sensor entry, the order of registers to compare is now reversed for low limits.
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Jean Delvare <[email protected]>
Cc: [email protected] # 3.0+
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions