Skip to content

Commit

Permalink
fixup! drivers: thermal: step_wise: add support for hysteresis
Browse files Browse the repository at this point in the history
The second call to get_tz_trend is unnecessary.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Sep 28, 2023
1 parent 456188f commit 96e091c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/thermal/gov_step_wise.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id
}
trip_type = trip.type;

trend = get_tz_trend(tz, trip_id);

dev_dbg(&tz->device,
"Trip%d[type=%d,temp=%d,hyst=%d]:trend=%d,throttle=%d\n",
trip_id, trip_type, trip.temperature, hyst_temp, trend, throttle);
Expand Down

0 comments on commit 96e091c

Please sign in to comment.