Lines Matching refs:fan_min
201 u8 fan_min[3]; /* Register value */ member
256 u8 old_min = data->fan_min[nr]; in pc87360_autodiv()
263 data->fan_min[nr] >>= 1; in pc87360_autodiv()
271 while (!(data->fan_min[nr] & 0x80) /* min "nails" divider */ in pc87360_autodiv()
275 data->fan_min[nr] <<= 1; in pc87360_autodiv()
285 if (old_min != data->fan_min[nr]) { in pc87360_autodiv()
288 data->fan_min[nr]); in pc87360_autodiv()
310 data->fan_min[i] = pc87360_read_value(data, in pc87360_update_device()
1168 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan_min[attr->index], in fan_min_show()
1178 long fan_min; in fan_min_store() local
1181 err = kstrtol(buf, 10, &fan_min); in fan_min_store()
1186 fan_min = FAN_TO_REG(fan_min, in fan_min_store()
1190 while (fan_min > 255 in fan_min_store()
1192 fan_min >>= 1; in fan_min_store()
1196 data->fan_min[attr->index] = fan_min > 255 ? 255 : fan_min; in fan_min_store()
1199 data->fan_min[attr->index]); in fan_min_store()
1210 static struct sensor_device_attribute fan_min[] = { variable
1211 SENSOR_ATTR_RW(fan1_min, fan_min, 0),
1212 SENSOR_ATTR_RW(fan2_min, fan_min, 1),
1213 SENSOR_ATTR_RW(fan3_min, fan_min, 2),
1220 &fan_min[X].dev_attr.attr, \