From: Guenter Roeck Date: Fri, 19 May 2017 17:54:46 +0000 (-0700) Subject: Sync with upstream X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=50cbc4e8bd8731c269f08a95e1f74b9d511eb3c5;p=groeck-nct6775 Sync with upstream Signed-off-by: Guenter Roeck --- diff --git a/nct6775.c b/nct6775.c index 49472ee..a6f3b73 100644 --- a/nct6775.c +++ b/nct6775.c @@ -375,9 +375,16 @@ static const u16 NCT6775_REG_TEMP_ALTERNATE[32] = { [15] = 0x664, }; -static const u16 NCT6775_REG_TEMP_CRIT[ARRAY_SIZE(nct6775_temp_label) - 1] - = { 0, 0, 0, 0, 0xa00, 0xa01, 0xa02, 0xa03, 0xa04, 0xa05, 0xa06, - 0xa07 }; +static const u16 NCT6775_REG_TEMP_CRIT[32] = { + [4] = 0xa00, + [5] = 0xa01, + [6] = 0xa02, + [7] = 0xa03, + [8] = 0xa04, + [9] = 0xa05, + [10] = 0xa06, + [11] = 0xa07 +}; /* NCT6776 specific data */ @@ -921,7 +928,7 @@ struct nct6775_data { u8 temp_src[NUM_TEMP]; u16 reg_temp_config[NUM_TEMP]; const char * const *temp_label; - int temp_mask; + u32 temp_mask; u16 REG_CONFIG; u16 REG_VBAT;