hwmon: (nct6775) Add support for multiple virtual temperature sources
authorGuenter Roeck <linux@roeck-us.net>
Sun, 11 Sep 2016 19:42:52 +0000 (12:42 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 18 Sep 2016 22:32:35 +0000 (15:32 -0700)
commit7ce4190c4ca466ccd609845b97dce665317aee2a
tree705b6081ec05400902c6ab4528da1408fac0c895
parentdc8b73ebe543f53ec78507a9d0d37073773f6157
hwmon: (nct6775) Add support for multiple virtual temperature sources

For virtual temperatures, the actual temperature values are written
by software, presumably by the BIOS. This functionality is (as of
right now) supported on NCT6791D, NCT6792D, and NCT6793D. On those chips,
the temperatures are written into registers 0xea..0xef on page 0.
This is known to be used on some Asus motherboards, where the actual
temperature source can be configured in the BIOS.

Report the 'virtual' temperatures for all monotoring sources to address
this situation.

Example for the resulting output (as seen with the 'sensors' command):

nct6791-isa-0290
Adapter: ISA adapter
...
Virtual_TEMP:           +31.0°C
PECI Agent 0:           +38.5°C
Virtual_TEMP:           +32.0°C
...

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c