Lines Matching refs:autofan
317 struct lm85_autofan autofan[3]; member
507 data->autofan[i].config = in lm85_update_device()
512 data->autofan[i].min_pwm = in lm85_update_device()
529 data->autofan[0].min_off = (i & 0x20) != 0; in lm85_update_device()
530 data->autofan[1].min_off = (i & 0x40) != 0; in lm85_update_device()
531 data->autofan[2].min_off = (i & 0x80) != 0; in lm85_update_device()
718 pwm_zone = ZONE_FROM_REG(data->autofan[nr].config); in pwm_enable_show()
767 data->autofan[nr].config = lm85_read_value(client, in pwm_enable_store()
769 data->autofan[nr].config = (data->autofan[nr].config & ~0xe0) in pwm_enable_store()
772 data->autofan[nr].config); in pwm_enable_store()
1026 return sprintf(buf, "%d\n", ZONE_FROM_REG(data->autofan[nr].config)); in pwm_auto_channels_show()
1044 data->autofan[nr].config = (data->autofan[nr].config & (~0xe0)) in pwm_auto_channels_store()
1047 data->autofan[nr].config); in pwm_auto_channels_store()
1057 return sprintf(buf, "%d\n", PWM_FROM_REG(data->autofan[nr].min_pwm)); in pwm_auto_pwm_min_show()
1075 data->autofan[nr].min_pwm = PWM_TO_REG(val); in pwm_auto_pwm_min_store()
1077 data->autofan[nr].min_pwm); in pwm_auto_pwm_min_store()
1088 return sprintf(buf, "%d\n", data->autofan[nr].min_off); in pwm_auto_pwm_minctl_show()
1107 data->autofan[nr].min_off = val; in pwm_auto_pwm_minctl_store()
1110 if (data->autofan[nr].min_off) in pwm_auto_pwm_minctl_store()