From: Julia Lawall Date: Sun, 11 Oct 2015 11:01:28 +0000 (+0200) Subject: thermal: constify pch_dev_ops structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a96bedf1b8e50c46d3b486294a8972c90aadc0cb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Zhang Rui --- 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 { /* 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, };