Skip to content

Commit

Permalink
thermal: constify pch_dev_ops structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Julia Lawall authored and Zhang Rui committed Dec 29, 2015
1 parent 74bf8ef commit a96bedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/intel_pch_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit a96bedf

Please sign in to comment.