.. | .. |
---|
486 | 486 | #define has_pwm_freq2(data) ((data)->features & FEAT_PWM_FREQ2) |
---|
487 | 487 | #define has_six_temp(data) ((data)->features & FEAT_SIX_TEMP) |
---|
488 | 488 | #define has_vin3_5v(data) ((data)->features & FEAT_VIN3_5V) |
---|
| 489 | +#define has_scaling(data) ((data)->features & (FEAT_12MV_ADC | \ |
---|
| 490 | + FEAT_10_9MV_ADC)) |
---|
489 | 491 | |
---|
490 | 492 | struct it87_sio_data { |
---|
491 | 493 | int sioaddr; |
---|
.. | .. |
---|
3098 | 3100 | "Detected broken BIOS defaults, disabling PWM interface\n"); |
---|
3099 | 3101 | |
---|
3100 | 3102 | /* Starting with IT8721F, we handle scaling of internal voltages */ |
---|
3101 | | - if (has_12mv_adc(data)) { |
---|
| 3103 | + if (has_scaling(data)) { |
---|
3102 | 3104 | if (sio_data->internal & BIT(0)) |
---|
3103 | 3105 | data->in_scaled |= BIT(3); /* in3 is AVCC */ |
---|
3104 | 3106 | if (sio_data->internal & BIT(1)) |
---|