]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
hwmon: (lm90) Don't access nonexistent registers on Maxim chips
authorJean Delvare <khali@linux-fr.org>
Fri, 17 Oct 2008 15:51:09 +0000 (17:51 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Fri, 17 Oct 2008 15:51:09 +0000 (17:51 +0200)
The Maxim chips supported by the lm90 driver have 8-bit high and low
remote limit values, not 11-bit as the other chips have. So stop reading
from and writing to registers that do not exist on these chips. Also
round the limit values set by the user properly.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Martyn Welch <martyn.welch@gefanuc.com>

No differences found