]> git.baikalelectronics.ru Git - kernel.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)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 13 Oct 2011 23:51:29 +0000 (16:51 -0700)
commit6c0f9868daf294596b2e8335e12d8fd0fcd29a91
tree73c100e882514b5281b300a18137363f3310f824
parent8c4003ecbb612a5b8a011da8e7ed51387cfa6a12
hwmon: (w83627ehf) Properly report thermal diode sensors

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>
Cc: stable@kernel.org
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83627ehf.c