Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187089
b: refs/heads/master
c: b35c74d
h: refs/heads/master
i:
  187087: 2f7849b
v: v3
  • Loading branch information
Johannes Berg authored and Greg Kroah-Hartman committed Mar 8, 2010
1 parent 9e2e429 commit c68a766
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 361795b1eb7c08e9e65a2ebb4a4e536294d378a2
refs/heads/master: b35c74dab64f4c212f36d868419108556c9cf3e2
1 change: 1 addition & 0 deletions trunk/drivers/macintosh/windfarm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ int wf_register_sensor(struct wf_sensor *new_sr)
kref_init(&new_sr->ref);
list_add(&new_sr->link, &wf_sensors);

sysfs_attr_init(&new_sr->attr.attr);
new_sr->attr.attr.name = new_sr->name;
new_sr->attr.attr.mode = 0444;
new_sr->attr.show = wf_show_sensor;
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/macintosh/windfarm_smu_controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ static struct smu_fan_control *smu_fan_create(struct device_node *node,

fct->fan_type = pwm_fan;
fct->ctrl.type = pwm_fan ? WF_CONTROL_PWM_FAN : WF_CONTROL_RPM_FAN;
sysfs_attr_init(&fct->ctrl.attr.attr);

/* We use the name & location here the same way we do for SMU sensors,
* see the comment in windfarm_smu_sensors.c. The locations are a bit
Expand Down

0 comments on commit c68a766

Please sign in to comment.