From: Jean Delvare Date: Sat, 12 Apr 2008 17:56:35 +0000 (+0200) Subject: hwmon: (lm85) Don't write back cached values X-Git-Tag: v2.6.27-rc2~103^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7133e56f29030b13601d3399e20050053e560860;p=pandora-kernel.git hwmon: (lm85) Don't write back cached values 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 Acked-by: Juerg Haefliger Signed-off-by: Mark M. Hoffman --- Reading git-diff-tree failed