]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
hwmon: (lm85) Don't write back cached values
authorJean Delvare <khali@linux-fr.org>
Sat, 12 Apr 2008 17:56:35 +0000 (19:56 +0200)
committerMark M. Hoffman <mhoffman@lightlink.com>
Fri, 1 Aug 2008 03:44:03 +0000 (23:44 -0400)
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.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Juerg Haefliger <juergh at gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>

No differences found