hwmon: (it87) Fix in7 on IT8720F
commite779a25d7285a229fc93751db47d80d4c2dd9045
authorJean Delvare <khali@linux-fr.org>
Fri, 9 Jul 2010 14:22:48 +0000 (9 16:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:23 +0000 (2 10:29 -0700)
tree5a2bd592d3d7fb71f90dda9ecaa0f1f2667673f0
parentc32f9cf32602dc3f737ad263057f29250c6be45b
hwmon: (it87) Fix in7 on IT8720F

commit 436cad2a41a40c6c32bd9152b63d17eeb1f7c99b upstream.

The IT8720F has no VIN7 pin, so VCCH should always be routed
internally to VIN7 with an internal divider. Curiously, there still
is a configuration bit to control this, which means it can be set
incorrectly. And even more curiously, many boards out there are
improperly configured, even though the IT8720F datasheet claims that
the internal routing of VCCH to VIN7 is the default setting. So we
force the internal routing in this case.

It turns out that all boards with the wrong setting are from Gigabyte,
so I suspect a BIOS bug. But it's easy enough to workaround in the
driver, so let's do it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jean-Marc Spaggiari <jean-marc@spaggiari.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/it87.c