Skip to content

Commit 53c9ce4

Browse files
committed
thermal/drivers/imx: Remove get_trip_temp ops
The i.MX thermal sensor uses the generic trip points. The thermal framework can return the critical temperature directly. Remove the pointless get_trip_temp ops. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20230309092821.1590586-1-daniel.lezcano@linaro.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 3f2f689 commit 53c9ce4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/thermal/imx_thermal.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,6 @@ static int imx_change_mode(struct thermal_zone_device *tz,
330330
return 0;
331331
}
332332

333-
static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp)
334-
{
335-
*temp = trips[IMX_TRIP_CRITICAL].temperature;
336-
337-
return 0;
338-
}
339-
340333
static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip,
341334
int temp)
342335
{
@@ -384,7 +377,6 @@ static struct thermal_zone_device_ops imx_tz_ops = {
384377
.unbind = imx_unbind,
385378
.get_temp = imx_get_temp,
386379
.change_mode = imx_change_mode,
387-
.get_crit_temp = imx_get_crit_temp,
388380
.set_trip_temp = imx_set_trip_temp,
389381
};
390382

0 commit comments

Comments
 (0)