]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (w83627ehf) Properly report thermal diode sensors
authorJean Delvare <khali@linux-fr.org>
Thu, 13 Oct 2011 19:49:08 +0000 (15:49 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:24 +0000 (15:35 -0400)
commitdb9ef6e22cbfff5726fccdf509ae9581aa069a0b
tree9ee6bae5611dec1342b92f72e611b2a35f400d86
parenteee8d56e8f3ee34450b3f48733cf0c961daeecd0
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/hwmon/w83627ehf.c