Lines Matching defs:fan
192 u8 fan[3]; /* Register value */
289 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
325 /* Note: we save and restore the fan minimum here, because its value is
326 determined in part by the fan divisor. This follows the principle of
327 least surprise; the user doesn't expect the fan minimum to change just
346 case 0: /* fan 1 */
352 case 1: /* fan 2 */
358 case 2: /* fan 3 */
375 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \
377 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
379 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
927 /* 3 fan inputs */
929 data->fan[i] = asb100_read_value(client,
945 /* VID and fan divisors */