From: Rafael J. Wysocki Date: Wed, 14 Feb 2024 12:48:34 +0000 (+0100) Subject: thermal: ACPI: Constify acpi_thermal_zone_ops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=75fb8714728460c4584c72e2f6410944a0b2cc44;p=linux.git 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 Acked-by: Daniel Lezcano --- diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 6c4ba00d60e21..8042e96016e65 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,