original_kernel/drivers/hwmon/pmbus
Guenter Roeck 40257b953f 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 <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 3.0+
2011-09-13 06:19:15 -07:00
..
Kconfig
Makefile
adm1275.c
lm25066.c
max8688.c
max16064.c
max34440.c
pmbus.c
pmbus.h
pmbus_core.c hwmon: (pmbus) Fix low limit temperature alarms 2011-09-13 06:19:15 -07:00
ucd9000.c
ucd9200.c