Lines Matching refs:in_min
155 u8 in_min[6]; /* Register value */ member
193 data->in_min[i] = vt8231_read_value(data, in vt8231_update_device()
265 return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958); in in_min_show()
292 data->in_min[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in in_min_store()
293 vt8231_write_value(data, regvoltmin[nr], data->in_min[nr]); in in_min_store()
334 (((data->in_min[5] - 3) * 10000 * 54) / (958 * 34))); in in5_min_show()
359 data->in_min[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in in5_min_store()
361 vt8231_write_value(data, regvoltmin[5], data->in_min[5]); in in5_min_store()
387 static SENSOR_DEVICE_ATTR_RW(in0_min, in_min, 0);
390 static SENSOR_DEVICE_ATTR_RW(in1_min, in_min, 1);
393 static SENSOR_DEVICE_ATTR_RW(in2_min, in_min, 2);
396 static SENSOR_DEVICE_ATTR_RW(in3_min, in_min, 3);
399 static SENSOR_DEVICE_ATTR_RW(in4_min, in_min, 4);