Lines Matching refs:temp_min
158 u8 temp_min[6]; /* Register value */ member
216 data->temp_min[i] = vt8231_read_value(data, in vt8231_update_device()
425 return sprintf(buf, "%d\n", data->temp_min[0] * 1000); in temp1_max_hyst_show()
459 data->temp_min[0] = clamp_val((val + 500) / 1000, 0, 255); in temp1_max_hyst_store()
460 vt8231_write_value(data, regtempmin[0], data->temp_min[0]); in temp1_max_hyst_store()
489 return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_min[nr])); in temp_min_show()
527 data->temp_min[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255); in temp_min_store()
528 vt8231_write_value(data, regtempmin[nr], data->temp_min[nr]); in temp_min_store()
544 static SENSOR_DEVICE_ATTR_RW(temp2_max_hyst, temp_min, 1);
547 static SENSOR_DEVICE_ATTR_RW(temp3_max_hyst, temp_min, 2);
550 static SENSOR_DEVICE_ATTR_RW(temp4_max_hyst, temp_min, 3);
553 static SENSOR_DEVICE_ATTR_RW(temp5_max_hyst, temp_min, 4);
556 static SENSOR_DEVICE_ATTR_RW(temp6_max_hyst, temp_min, 5);