hwmon: (w83627ehf) Properly report thermal diode sensors
authorJean Delvare <khali@linux-fr.org>
Thu, 13 Oct 2011 19:49:08 +0000 (15:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 20:32:14 +0000 (12:32 -0800)
commitec13cb15c2164ac096d71ebbe2c9869eee482d27
tree3a79cde87fec09ef04b7da125566c2e892953b0a
parent2b3b2a6721c32d4e8e13549fe83f35a1b487f05e
hwmon: (w83627ehf) Properly report thermal diode sensors

commit bf164c58e58328c40ebc597a8ac00cc6840f9703 upstream.

The w83627ehf driver is improperly reporting thermal diode sensors as
type 2, instead of 3. This caused "sensors" and possibly other
monitoring tools to report these sensors as "transistor" instead of
"thermal diode".

Furthermore, diode subtype selection (CPU vs. external) is only
supported by the original W83627EHF/EHG. All later models only support
CPU diode type, and some (NCT6776F) don't even have the register in
question so we should avoid reading from it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/w83627ehf.c