Lines Matching refs:in_max
267 u8 in_max[17]; /* Register value */ member
385 data->in_max[i] = adm1026_read_value(client, in adm1026_update_device()
509 return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr])); in in_max_show()
526 data->in_max[nr] = INS_TO_REG(nr, val); in in_max_store()
527 adm1026_write_value(client, ADM1026_REG_IN_MAX[nr], data->in_max[nr]); in in_max_store()
534 static SENSOR_DEVICE_ATTR_RW(in0_max, in_max, 0);
537 static SENSOR_DEVICE_ATTR_RW(in1_max, in_max, 1);
540 static SENSOR_DEVICE_ATTR_RW(in2_max, in_max, 2);
543 static SENSOR_DEVICE_ATTR_RW(in3_max, in_max, 3);
546 static SENSOR_DEVICE_ATTR_RW(in4_max, in_max, 4);
549 static SENSOR_DEVICE_ATTR_RW(in5_max, in_max, 5);
552 static SENSOR_DEVICE_ATTR_RW(in6_max, in_max, 6);
555 static SENSOR_DEVICE_ATTR_RW(in7_max, in_max, 7);
558 static SENSOR_DEVICE_ATTR_RW(in8_max, in_max, 8);
561 static SENSOR_DEVICE_ATTR_RW(in9_max, in_max, 9);
564 static SENSOR_DEVICE_ATTR_RW(in10_max, in_max, 10);
567 static SENSOR_DEVICE_ATTR_RW(in11_max, in_max, 11);
570 static SENSOR_DEVICE_ATTR_RW(in12_max, in_max, 12);
573 static SENSOR_DEVICE_ATTR_RW(in13_max, in_max, 13);
576 static SENSOR_DEVICE_ATTR_RW(in14_max, in_max, 14);
579 static SENSOR_DEVICE_ATTR_RW(in15_max, in_max, 15);
621 return sprintf(buf, "%d\n", INS_FROM_REG(16, data->in_max[16]) in in16_max_show()
638 data->in_max[16] = INS_TO_REG(16, in in16_max_store()
642 adm1026_write_value(client, ADM1026_REG_IN_MAX[16], data->in_max[16]); in in16_max_store()