summaryrefslogtreecommitdiff
path: root/drivers/macintosh/windfarm_smu_controls.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-11 23:08:45 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-14 21:57:56 +1000
commit1ad35f6e2864d9b52fe9705ede1730468c25f692 (patch)
tree0c06c67e1400c00e9697eef5fd173cd2fdc5bdd9 /drivers/macintosh/windfarm_smu_controls.c
parentb3376dcc6c62452fe24e76d8fc35bb13eb7ee178 (diff)
drivers/macintosh: Make wf_control_ops and wf_pid_param const
Make wf_control_ops const as they are only stored in the ops field of a wf_control structure, which is const. Make wf_pid_param const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/windfarm_smu_controls.c')
-rw-r--r--drivers/macintosh/windfarm_smu_controls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_smu_controls.c b/drivers/macintosh/windfarm_smu_controls.c
index c155a54e8638..d174c7437337 100644
--- a/drivers/macintosh/windfarm_smu_controls.c
+++ b/drivers/macintosh/windfarm_smu_controls.c
@@ -145,7 +145,7 @@ static s32 smu_fan_max(struct wf_control *ct)
return fct->max;
}
-static struct wf_control_ops smu_fan_ops = {
+static const struct wf_control_ops smu_fan_ops = {
.set_value = smu_fan_set,
.get_value = smu_fan_get,
.get_min = smu_fan_min,