Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13cfb713 authored by Julia Lawall's avatar Julia Lawall Committed by Eduardo Valentin
Browse files

thermal: armada: 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 devm_thermal_zone_of_sensor_register
and the corresponding parameter is declared as const.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 6085c133
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ static int armada_get_temp(void *_sensor, int *temp)
	return ret;
}

static struct thermal_zone_of_device_ops of_ops = {
static const struct thermal_zone_of_device_ops of_ops = {
	.get_temp = armada_get_temp,
};