summaryrefslogtreecommitdiff
path: root/drivers/macintosh/windfarm_rm31.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-11 20:38:45 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-14 14:57:56 +0300
commit1ad35f6e2864d9b52fe9705ede1730468c25f692 (patch)
tree0c06c67e1400c00e9697eef5fd173cd2fdc5bdd9 /drivers/macintosh/windfarm_rm31.c
parentb3376dcc6c62452fe24e76d8fc35bb13eb7ee178 (diff)
downloadlinux-1ad35f6e2864d9b52fe9705ede1730468c25f692.tar.xz
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_rm31.c')
-rw-r--r--drivers/macintosh/windfarm_rm31.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_rm31.c b/drivers/macintosh/windfarm_rm31.c
index bdfcb8a8bfbb..a0cd9c7f9835 100644
--- a/drivers/macintosh/windfarm_rm31.c
+++ b/drivers/macintosh/windfarm_rm31.c
@@ -338,7 +338,7 @@ static int cpu_setup_pid(int cpu)
}
/* Backside/U3 fan */
-static struct wf_pid_param backside_param = {
+static const struct wf_pid_param backside_param = {
.interval = 1,
.history_len = 2,
.gd = 0x00500000,
@@ -351,7 +351,7 @@ static struct wf_pid_param backside_param = {
};
/* DIMMs temperature (clamp the backside fan) */
-static struct wf_pid_param dimms_param = {
+static const struct wf_pid_param dimms_param = {
.interval = 1,
.history_len = 20,
.gd = 0,