mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: Julia Lawall <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
This commit is contained in:
parent
6085c13351
commit
13cfb713c8
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ unlock_mutex:
|
|||
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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue