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>
This commit is contained in:
Bhumika Goyal
2017-08-11 23:08:45 +05:30
committed by Michael Ellerman
parent b3376dcc6c
commit 1ad35f6e28
3 changed files with 4 additions and 4 deletions

View File

@@ -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,