Skip to content

Commit 8ecd953

Browse files
committed
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 <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 79f194d commit 8ecd953

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

drivers/thermal/thermal_trip.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,6 @@ void thermal_zone_set_trips(struct thermal_zone_device *tz)
108108
dev_err(&tz->device, "Failed to set trips: %d\n", ret);
109109
}
110110

111-
int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
112-
struct thermal_trip *trip)
113-
{
114-
if (!tz || !trip || trip_id < 0 || trip_id >= tz->num_trips)
115-
return -EINVAL;
116-
117-
mutex_lock(&tz->lock);
118-
*trip = tz->trips[trip_id].trip;
119-
mutex_unlock(&tz->lock);
120-
121-
return 0;
122-
}
123-
EXPORT_SYMBOL_GPL(thermal_zone_get_trip);
124-
125111
int thermal_zone_trip_id(const struct thermal_zone_device *tz,
126112
const struct thermal_trip *trip)
127113
{

include/linux/thermal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ static inline void devm_thermal_of_zone_unregister(struct device *dev,
202202
}
203203
#endif
204204

205-
int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
206-
struct thermal_trip *trip);
207205
int for_each_thermal_trip(struct thermal_zone_device *tz,
208206
int (*cb)(struct thermal_trip *, void *),
209207
void *data);

0 commit comments

Comments
 (0)