Skip to content

Commit

Permalink
thermal/drivers/imx: Remove get_trip_temp ops
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
  • Loading branch information
dlezcano committed Apr 1, 2023
1 parent 3f2f689 commit 53c9ce4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/thermal/imx_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,6 @@ static int imx_change_mode(struct thermal_zone_device *tz,
return 0;
}

static int imx_get_crit_temp(struct thermal_zone_device *tz, int *temp)
{
*temp = trips[IMX_TRIP_CRITICAL].temperature;

return 0;
}

static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip,
int temp)
{
Expand Down Expand Up @@ -384,7 +377,6 @@ static struct thermal_zone_device_ops imx_tz_ops = {
.unbind = imx_unbind,
.get_temp = imx_get_temp,
.change_mode = imx_change_mode,
.get_crit_temp = imx_get_crit_temp,
.set_trip_temp = imx_set_trip_temp,
};

Expand Down

0 comments on commit 53c9ce4

Please sign in to comment.