Signed-off-by: Guenter Roeck <linux@roeck-us.net>
switch (data->kind) {
case nct6775:
data->in_num = 9;
- data->have_in = 0x1ff;
data->pwm_num = 3;
data->auto_pwm_num = 6;
data->has_fan_div = true;
break;
case nct6776:
data->in_num = 9;
- data->have_in = 0x1ff;
data->pwm_num = 3;
data->auto_pwm_num = 4;
data->has_fan_div = false;
break;
case nct6779:
data->in_num = 15;
- data->have_in = 0x7fff;
data->pwm_num = 5;
data->auto_pwm_num = 4;
data->has_fan_div = false;
err = -ENODEV;
goto exit_release;
}
-
+ data->have_in = (1 << data->in_num) - 1;
data->have_temp = 0;
/*