Skip to contentSkip to conversation

hwmon: (lm85) Don't write back

PATCH Mark M. Hoffman 1 participant 1 message Jun 25, 2008

lore
Share & tools
lore
#0 lore raw

Hi Jean:

Quoted 9 lines · Jean Delvare

In set_pwm_auto_pwm_minctl, we write cached register bits back to the chip. This is a bad idea as we have no guarantee that the cache is up-to-date. Better read a fresh register value from the chip, it's safer and in fact it is also more simple.

---
 drivers/hwmon/lm85.c |   15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

Applied to hwmon-2.6.git/testing, thanks.

Signature · 8 lines
Mark M. Hoffman
[email protected]


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors