Lines Matching refs:fan_min
159 u8 fan_min[2]; /* Register value */ member
201 data->fan_min[i] = vt8231_read_value(data, in vt8231_update_device()
227 if (!data->fan[0] && data->fan_min[0]) in vt8231_update_device()
229 else if (data->fan[0] && !data->fan_min[0]) in vt8231_update_device()
232 if (!data->fan[1] && data->fan_min[1]) in vt8231_update_device()
234 else if (data->fan[1] && !data->fan_min[1]) in vt8231_update_device()
574 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
602 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
603 vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]); in fan_min_store()
617 long min = FAN_FROM_REG(data->fan_min[nr], in fan_div_store()
648 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in fan_div_store()
649 vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]); in fan_div_store()
658 static SENSOR_DEVICE_ATTR_RW(fan1_min, fan_min, 0);
661 static SENSOR_DEVICE_ATTR_RW(fan2_min, fan_min, 1);