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>
This commit is contained in:
Julia Lawall 2018-10-30 16:15:00 +01:00 committed by Eduardo Valentin
parent 13cfb713c8
commit 1aea7aee80
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static int brcmstb_set_trips(void *data, int low, int high)
return 0; 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, .get_temp = brcmstb_get_temp,
.set_trips = brcmstb_set_trips, .set_trips = brcmstb_set_trips,
}; };