hwmon: (pmbus) Continuously update temperature limit registers
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 6 Mar 2011 20:28:24 +0000 (12:28 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 15 Mar 2011 05:39:10 +0000 (22:39 -0700)
commit8677011a5d8e0358ce5ae26d82dfcddcad073c47
treedf4bb5324105b5e818f77307eecea1e21732133e
parentb49547a5df96bc755d6f96abb8503678af49d91c
hwmon: (pmbus) Continuously update temperature limit registers

PMBus only has one set of limit registers for up to three temperature sensors.
Thus, changing a limit for one of the temperature sensors affects limits for
other temperature sensors in the same page (and potentially multiple pages
depending on the chip implementation). To handle this situation, re-read all
temperature limit registers when updating sensor data. This way, all affected
temperature limits are updated whenever the limit for a single sensor is
changed.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/pmbus_core.c