diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-10-30 18:15:00 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-12-05 17:47:46 +0300 |
commit | 1aea7aee805e3d1288f9f1fa4484964b51664960 (patch) | |
tree | f2e35159eecbc62e4907f2a1c33557074ec93636 /drivers/thermal/broadcom | |
parent | 13cfb713c8c2035c058af3233c3432165c97ceeb (diff) | |
download | linux-1aea7aee805e3d1288f9f1fa4484964b51664960.tar.xz |
thermal: broadcom: constify thermal_zone_of_device_ops structure
The thermal_zone_of_device_ops structure can be const as it is only
passed as the last argument of thermal_zone_of_sensor_register
and the corresponding parameter is declared as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/broadcom')
-rw-r--r-- | drivers/thermal/broadcom/brcmstb_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c index 1919f91fa756..e8b1570cc388 100644 --- a/drivers/thermal/broadcom/brcmstb_thermal.c +++ b/drivers/thermal/broadcom/brcmstb_thermal.c @@ -299,7 +299,7 @@ static int brcmstb_set_trips(void *data, int low, int high) return 0; } -static struct thermal_zone_of_device_ops of_ops = { +static const struct thermal_zone_of_device_ops of_ops = { .get_temp = brcmstb_get_temp, .set_trips = brcmstb_set_trips, }; |