Lines Matching refs:fan_min
276 u8 fan_min[8]; /* Register value */ member
393 data->fan_min[i] = adm1026_read_value(client, in adm1026_update_device()
668 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr], in fan_min_show()
687 data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]); in fan_min_store()
689 data->fan_min[nr]); in fan_min_store()
695 static SENSOR_DEVICE_ATTR_RW(fan1_min, fan_min, 0);
697 static SENSOR_DEVICE_ATTR_RW(fan2_min, fan_min, 1);
699 static SENSOR_DEVICE_ATTR_RW(fan3_min, fan_min, 2);
701 static SENSOR_DEVICE_ATTR_RW(fan4_min, fan_min, 3);
703 static SENSOR_DEVICE_ATTR_RW(fan5_min, fan_min, 4);
705 static SENSOR_DEVICE_ATTR_RW(fan6_min, fan_min, 5);
707 static SENSOR_DEVICE_ATTR_RW(fan7_min, fan_min, 6);
709 static SENSOR_DEVICE_ATTR_RW(fan8_min, fan_min, 7);
720 if (data->fan_min[fan] == 0 || data->fan_min[fan] == 0xff) in fixup_fan_min()
723 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min()
725 data->fan_min[fan] = new_min; in fixup_fan_min()