Lines Matching refs:in_max
152 u8 in_max[6]; /* Register value */ member
209 return sprintf(buf, "%d\n", (((data->in_max[nr] - 3) * 10000) / 958)); in in_max_show()
246 data->in_max[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255); in in_max_store()
247 vt8231_write_value(data, regvoltmax[nr], data->in_max[nr]); in in_max_store()
277 (((data->in_max[5] - 3) * 10000 * 54) / (958 * 34))); in in5_max_show()
313 data->in_max[5] = clamp_val(((val * 958 * 34) / (10000 * 54)) + 3, in in5_max_store()
315 vt8231_write_value(data, regvoltmax[5], data->in_max[5]); in in5_max_store()
322 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
325 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
328 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
331 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
334 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
888 data->in_max[i] = vt8231_read_value(data, in vt8231_update_device()