Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 569118fd authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: thermal: Use correct last temperature during trip violation check"

parents 7eb3ff70 f6559eba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -577,7 +577,7 @@ static bool of_thermal_is_trips_triggered(struct thermal_zone_device *tz,
	bool triggered = false;

	mutex_lock(&tz->lock);
	last_temp = tz->last_temperature;
	last_temp = tz->temperature;
	for (trip = 0; trip < data->ntrips; trip++) {

		if (!tz->tzp->tracks_low) {