Skip to content

Commit c3c04d9

Browse files
JuliaLawallzhang-rui
authored andcommitted
thermal: exynos: constify thermal_zone_of_device_ops structures
The thermal_zone_of_device_ops structure is only passed as the fourth argument to thermal_zone_of_sensor_register, which is declared as const. Thus the thermal_zone_of_device_ops structure itself can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
1 parent e85c995 commit c3c04d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/samsung/exynos_tmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
12861286
return 0;
12871287
}
12881288

1289-
static struct thermal_zone_of_device_ops exynos_sensor_ops = {
1289+
static const struct thermal_zone_of_device_ops exynos_sensor_ops = {
12901290
.get_temp = exynos_get_temp,
12911291
.set_emul_temp = exynos_tmu_set_emulation,
12921292
};

0 commit comments

Comments
 (0)