With the reworked temperature mapping it was no longer possible to set
manual mode since the 'automatic' configuration bit was never cleared.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
if (has_newer_autopwm(data)) {
ctrl = temp_map_to_reg(data, nr,
data->pwm_temp_map[nr]);
+ ctrl &= 0x7f;
} else {
ctrl = data->pwm_duty[nr];
}
if (has_newer_autopwm(data)) {
ctrl = temp_map_to_reg(data, nr,
data->pwm_temp_map[nr]);
- if (val != 1)
+ if (val == 1)
+ ctrl &= 0x7f;
+ else
ctrl |= 0x80;
} else {
ctrl = (val == 1 ? data->pwm_duty[nr] : 0x80);