hwmon: (nct7904) Fix the incorrect value of vsen_mask in nct7904_data struct
authoramy.shih <amy.shih@advantech.com.tw>
Wed, 18 Sep 2019 08:48:00 +0000 (16:48 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 2 Oct 2019 13:34:26 +0000 (06:34 -0700)
commit539ad001d1557731cb38d4a9d0e8e16244b2d913
tree34bf3d31c1c482da1afaf4e339b19e5e54a7eafe
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
hwmon: (nct7904) Fix the incorrect value of vsen_mask in nct7904_data struct

Voltage sensors overlap with external temperature sensors. Detect
the multi-function of voltage, thermal diode and thermistor from
register VT_ADC_MD_REG to set value of vsen_mask in nct7904_data
struct.

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