hwmon: (nct7904) Fix the incorrect value of vsen_mask & tcpu_mask & temp_mode in...
authoramy.shih <amy.shih@advantech.com.tw>
Mon, 14 Oct 2019 08:24:51 +0000 (16:24 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 20 Oct 2019 16:22:48 +0000 (09:22 -0700)
commit6fc28b7e0aac8a72217b314dfb5208321d9448e2
tree100678f883e8d6bf7b079b4e98dcaebd2fa3e87d
parent4f5cafb5cb8471e54afdc9054d973535614f7675
hwmon: (nct7904) Fix the incorrect value of vsen_mask & tcpu_mask & temp_mode in nct7904_data struct.

Voltage sensors overlap with external temperature sensors. Detect
the multi-function of voltage, thermal diode, thermistor and
reserved from register VT_ADC_MD_REG to set value of vsen_mask &
tcpu_mask & temp_mode in nct7904_data struct. If the value is
reserved, needs to disable the vsen_mask & tcpu_mask.

Signed-off-by: amy.shih <amy.shih@advantech.com.tw>
Link: https://lore.kernel.org/r/20191014082451.2895-1-Amy.Shih@advantech.com.tw
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c