]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb2611b856d932ead0d965841645800f6dbb81884
treedf4bb5324105b5e818f77307eecea1e21732133e
parent9794ad68cfab9d13900ded5d72e744e8033fae1c
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