Lines 525-534
EEEPC_CREATE_SENSOR_ATTR(fan1_pwm, S_IRUGO | S_IWUSR,
Link Here
|
525 |
EEEPC_CREATE_SENSOR_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, |
525 |
EEEPC_CREATE_SENSOR_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, |
526 |
eeepc_get_fan_ctrl, eeepc_set_fan_ctrl); |
526 |
eeepc_get_fan_ctrl, eeepc_set_fan_ctrl); |
527 |
|
527 |
|
|
|
528 |
static ssize_t |
529 |
show_name(struct device *dev, struct device_attribute *attr, char *buf) |
530 |
{ |
531 |
return sprintf(buf, "fan\n"); |
532 |
} |
533 |
static SENSOR_DEVICE_ATTR(name, S_IRUGO, show_name, NULL); |
534 |
|
528 |
static struct attribute *hwmon_attributes[] = { |
535 |
static struct attribute *hwmon_attributes[] = { |
529 |
&sensor_dev_attr_fan1_pwm.dev_attr.attr, |
536 |
&sensor_dev_attr_fan1_pwm.dev_attr.attr, |
530 |
&sensor_dev_attr_fan1_input.dev_attr.attr, |
537 |
&sensor_dev_attr_fan1_input.dev_attr.attr, |
531 |
&sensor_dev_attr_pwm1_enable.dev_attr.attr, |
538 |
&sensor_dev_attr_pwm1_enable.dev_attr.attr, |
|
|
539 |
&sensor_dev_attr_name.dev_attr.attr, |
532 |
NULL |
540 |
NULL |
533 |
}; |
541 |
}; |
534 |
|
542 |
|