summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/thermal.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-14 13:48:34 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-23 18:24:48 +0100
commit75fb8714728460c4584c72e2f6410944a0b2cc44 (patch)
tree6d26d4a85e61ada980ab6ef9ffc6757628dd1e2b /drivers/acpi/thermal.c
parentthermal: core: Store zone ops in struct thermal_zone_device (diff)
downloadlinux-75fb8714728460c4584c72e2f6410944a0b2cc44.tar.xz
linux-75fb8714728460c4584c72e2f6410944a0b2cc44.zip
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 <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r--drivers/acpi/thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 6c4ba00d60e2..8042e96016e6 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -620,7 +620,7 @@ acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,
return acpi_thermal_bind_unbind_cdev(thermal, cdev, false);
}
-static struct thermal_zone_device_ops acpi_thermal_zone_ops = {
+static const struct thermal_zone_device_ops acpi_thermal_zone_ops = {
.bind = acpi_thermal_bind_cooling_device,
.unbind = acpi_thermal_unbind_cooling_device,
.get_temp = thermal_get_temp,