summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-22 18:32:03 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-27 12:04:01 +0100
commit46f5bef8ec2e1e05ad2fda0bcf5ac32e191ec694 (patch)
treeaec853ab76f9e206e3fac5ec743a9aca9869b00e /drivers/thermal
parent5340f7647294fa8ff8cf5a1bee326b2bd8340e27 (diff)
downloadlinux-46f5bef8ec2e1e05ad2fda0bcf5ac32e191ec694.tar.gz
linux-46f5bef8ec2e1e05ad2fda0bcf5ac32e191ec694.tar.bz2
linux-46f5bef8ec2e1e05ad2fda0bcf5ac32e191ec694.zip
thermal: core: Drop the .set_trip_hyst() thermal zone operation
None of the users of the thermal core provides a .set_trip_hyst() thermal zone operation, so drop that callback from struct thermal_zone_device_ops and update trip_point_hyst_store() accordingly. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_sysfs.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/thermal/thermal_sysfs.c b/drivers/thermal/thermal_sysfs.c
index 39dbbdac75d0..7c02d35384ce 100644
--- a/drivers/thermal/thermal_sysfs.c
+++ b/drivers/thermal/thermal_sysfs.c
@@ -174,18 +174,11 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr,
trip = &tz->trips[trip_id];
if (hyst != trip->hysteresis) {
- if (tz->ops.set_trip_hyst) {
- ret = tz->ops.set_trip_hyst(tz, trip_id, hyst);
- if (ret)
- goto unlock;
- }
-
trip->hysteresis = hyst;
thermal_zone_trip_updated(tz, trip);
}
-unlock:
mutex_unlock(&tz->lock);
return ret ? ret : count;