aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal_trip.c
diff options
context:
space:
mode:
authorGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2023-12-15 20:53:52 +0100
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2024-01-04 12:17:45 +0100
commitf380846462b2d8341be303db954d4305d419b883 (patch)
tree1a4accfbfe7401ccadf6c335353633b42a41c376 /drivers/thermal/thermal_trip.c
parentMerge tag 'thermal-v6.8-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-f380846462b2d8341be303db954d4305d419b883.tar.gz
linux-f380846462b2d8341be303db954d4305d419b883.tar.bz2
linux-f380846462b2d8341be303db954d4305d419b883.zip
thermal: trip: Constify thermal zone argument of thermal_zone_trip_id()
Because thermal_zone_trip_id() does not update the thermal zone object passed to it, its pointer argument representing the thermal zone can be const, so adjust its definition accordingly. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Diffstat (limited to 'drivers/thermal/thermal_trip.c')
-rw-r--r--drivers/thermal/thermal_trip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_trip.c b/drivers/thermal/thermal_trip.c
index a1ad345c0741..8bffa1e5e206 100644
--- a/drivers/thermal/thermal_trip.c
+++ b/drivers/thermal/thermal_trip.c
@@ -143,7 +143,7 @@ int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
}
EXPORT_SYMBOL_GPL(thermal_zone_get_trip);
-int thermal_zone_trip_id(struct thermal_zone_device *tz,
+int thermal_zone_trip_id(const struct thermal_zone_device *tz,
const struct thermal_trip *trip)
{
/*