summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-07-29 18:12:45 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-08-02 14:01:12 +0200
commit8ecd953ca5850d2f83f548d4bbcf672d2d2cd0ca (patch)
treeb92b38c9cf6f9a4ba3391d4cca453337e8c92698 /drivers/thermal
parent79f194dd54cef3a0212914cd79dda1f91b7bf7f6 (diff)
downloadlwn-8ecd953ca5850d2f83f548d4bbcf672d2d2cd0ca.tar.gz
lwn-8ecd953ca5850d2f83f548d4bbcf672d2d2cd0ca.zip
thermal: trip: Drop thermal_zone_get_trip()
There are no more callers of thermal_zone_get_trip() in the tree, so drop it. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/2220301.Mh6RI2rZIc@rjwysocki.net
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_trip.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/thermal/thermal_trip.c b/drivers/thermal/thermal_trip.c
index e64d045d1603..079e5e452eeb 100644
--- a/drivers/thermal/thermal_trip.c
+++ b/drivers/thermal/thermal_trip.c
@@ -108,20 +108,6 @@ void thermal_zone_set_trips(struct thermal_zone_device *tz)
dev_err(&tz->device, "Failed to set trips: %d\n", ret);
}
-int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
- struct thermal_trip *trip)
-{
- if (!tz || !trip || trip_id < 0 || trip_id >= tz->num_trips)
- return -EINVAL;
-
- mutex_lock(&tz->lock);
- *trip = tz->trips[trip_id].trip;
- mutex_unlock(&tz->lock);
-
- return 0;
-}
-EXPORT_SYMBOL_GPL(thermal_zone_get_trip);
-
int thermal_zone_trip_id(const struct thermal_zone_device *tz,
const struct thermal_trip *trip)
{