hwmon: (nct7904) Fix the incorrect value of tcpu_mask in nct7904_data struct.
authoramy.shih <amy.shih@advantech.com.tw>
Fri, 31 May 2019 10:20:47 +0000 (10:20 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jun 2019 01:33:01 +0000 (18:33 -0700)
commitb67b7356135a4f969a33cde46359ab1068a75117
tree5c90942114d57a2b01cdbe46225eb3daedf19eee
parent37ab356417950bcefce49aa18a2c9d68dfcaab4b
hwmon: (nct7904) Fix the incorrect value of tcpu_mask in nct7904_data struct.

Detect the multi-function of voltage, thermal diode and thermistor
from register VT_ADC_MD_REG to set value of tcpu_mask in nct7904_data
struct, set temp[1-5]_input the input values TEMP_CH1~4 and LTD of
temperature. Set temp[6~13]_input the input values of DTS temperature
that correspond to sensors TCPU1~8.

Signed-off-by: amy.shih <amy.shih@advantech.com.tw>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c