Lines Matching defs:fan
193 u8 fan[3]; /* Register value */
291 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
333 * Note: we save and restore the fan minimum here, because its value is
334 * determined in part by the fan divisor. This follows the principle of
335 * least surprise; the user doesn't expect the fan minimum to change just
360 case 0: /* fan 1 */
366 case 1: /* fan 2 */
372 case 2: /* fan 3 */
389 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \
391 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
393 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
960 /* 3 fan inputs */
962 data->fan[i] = asb100_read_value(client,
978 /* VID and fan divisors */