Lines Matching refs:fan_div
80 u8 fan_div[2]; member
176 data->fan_div[chan] = in adm1031_update_device()
564 FAN_DIV_FROM_REG(data->fan_div[nr])) : 0; in fan_show()
573 return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_div_show()
582 FAN_DIV_FROM_REG(data->fan_div[nr]))); in fan_min_show()
601 FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr])); in fan_min_store()
636 data->fan_div[nr] = adm1031_read_value(client, in fan_div_store()
642 old_div = FAN_DIV_FROM_REG(data->fan_div[nr]); in fan_div_store()
643 data->fan_div[nr] = tmp | (0x3f & data->fan_div[nr]); in fan_div_store()
648 data->fan_div[nr]); in fan_div_store()
660 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
663 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);