Skip to content

Commit 75fb871

Browse files
committed
thermal: ACPI: Constify acpi_thermal_zone_ops
Because thermal zone operations are now stored directly in struct thermal_zone_device, acpi_thermal_zone_ops need not be modified by the thermal core and so it can be const. Adjust the code accordingly. No functional impact. Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent 698a1eb commit 75fb871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,
620620
return acpi_thermal_bind_unbind_cdev(thermal, cdev, false);
621621
}
622622

623-
static struct thermal_zone_device_ops acpi_thermal_zone_ops = {
623+
static const struct thermal_zone_device_ops acpi_thermal_zone_ops = {
624624
.bind = acpi_thermal_bind_cooling_device,
625625
.unbind = acpi_thermal_unbind_cooling_device,
626626
.get_temp = thermal_get_temp,

0 commit comments

Comments
 (0)