diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-10-11 07:01:28 -0400 |
|---|---|---|
| committer | Zhang Rui <rui.zhang@intel.com> | 2015-12-29 03:16:31 -0500 |
| commit | a96bedf1b8e50c46d3b486294a8972c90aadc0cb (patch) | |
| tree | afbb2e5d9e82759cffc243dea6bf91adfa7084bc | |
| parent | 74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6 (diff) | |
thermal: constify pch_dev_ops structure
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>
| -rw-r--r-- | drivers/thermal/intel_pch_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel_pch_thermal.c index 50c7da79be83..00d81af648b8 100644 --- a/drivers/thermal/intel_pch_thermal.c +++ b/drivers/thermal/intel_pch_thermal.c | |||
| @@ -136,7 +136,7 @@ struct pch_dev_ops { | |||
| 136 | 136 | ||
| 137 | 137 | ||
| 138 | /* dev ops for Wildcat Point */ | 138 | /* dev ops for Wildcat Point */ |
| 139 | static struct pch_dev_ops pch_dev_ops_wpt = { | 139 | static const struct pch_dev_ops pch_dev_ops_wpt = { |
| 140 | .hw_init = pch_wpt_init, | 140 | .hw_init = pch_wpt_init, |
| 141 | .get_temp = pch_wpt_get_temp, | 141 | .get_temp = pch_wpt_get_temp, |
| 142 | }; | 142 | }; |
