Lines Matching defs:fan_div
108 u8 fan_div[ARRAY_SIZE(ADM1029_REG_FAN_DIV)];
140 data->fan_div[nr] =
175 (data->fan_div[attr->index] & 0xC0) == 0 ||
180 val = 1880 * 120 / DIV_FROM_REG(data->fan_div[attr->index])
191 if ((data->fan_div[attr->index] & 0xC0) == 0)
193 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index]));
229 "fan_div value %ld not supported. Choose one of 1, 2 or 4!\n",
237 data->fan_div[attr->index] = reg;
266 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
267 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);