|
@@ -1558,7 +1558,7 @@ static void nct6775_update_pwm(struct device *dev)
|
|
reg = nct6775_read_value(data, data->REG_WEIGHT_TEMP_SEL[i]);
|
|
reg = nct6775_read_value(data, data->REG_WEIGHT_TEMP_SEL[i]);
|
|
data->pwm_weight_temp_sel[i] = reg & 0x1f;
|
|
data->pwm_weight_temp_sel[i] = reg & 0x1f;
|
|
/* If weight is disabled, report weight source as 0 */
|
|
/* If weight is disabled, report weight source as 0 */
|
|
- if (j == 1 && !(reg & 0x80))
|
|
|
|
|
|
+ if (!(reg & 0x80))
|
|
data->pwm_weight_temp_sel[i] = 0;
|
|
data->pwm_weight_temp_sel[i] = 0;
|
|
|
|
|
|
/* Weight temp data */
|
|
/* Weight temp data */
|