]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/macintosh: Make wf_control_ops and wf_pid_param const
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 11 Aug 2017 17:38:45 +0000 (23:08 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Aug 2017 11:57:56 +0000 (21:57 +1000)
commit900c041b94ada8ce67b228394368069e77a90adb
tree0c06c67e1400c00e9697eef5fd173cd2fdc5bdd9
parent8d4da6d925e9817fb1757cb220bd684e46996ac6
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>
drivers/macintosh/windfarm_cpufreq_clamp.c
drivers/macintosh/windfarm_rm31.c
drivers/macintosh/windfarm_smu_controls.c