projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74bf8ef
)
thermal: constify pch_dev_ops structure
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 11 Oct 2015 11:01:28 +0000
(13:01 +0200)
committer
Zhang Rui
<rui.zhang@intel.com>
Tue, 29 Dec 2015 08:16:31 +0000
(16:16 +0800)
The pch_dev_ops structure is never modified. It is only stored in a field
that is already declared as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel_pch_thermal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/intel_pch_thermal.c
b/drivers/thermal/intel_pch_thermal.c
index 50c7da79be830a43b342999ca80ef264431e0078..00d81af648b8ed93a9d7c2e09aef8979f7d0606d 100644
(file)
--- a/
drivers/thermal/intel_pch_thermal.c
+++ b/
drivers/thermal/intel_pch_thermal.c
@@
-136,7
+136,7
@@
struct pch_dev_ops {
/* dev ops for Wildcat Point */
-static struct pch_dev_ops pch_dev_ops_wpt = {
+static
const
struct pch_dev_ops pch_dev_ops_wpt = {
.hw_init = pch_wpt_init,
.get_temp = pch_wpt_get_temp,
};