thermal: constify pch_dev_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 11 Oct 2015 11:01:28 +0000 (13:01 +0200)
committerZhang 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

index 50c7da7..00d81af 100644 (file)
@@ -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,
 };