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

Commit 5be52fcc authored by Lukasz Luba's avatar Lukasz Luba Committed by Zhang Rui
Browse files

thermal: remove unused function parameter



Clean unused parameter from internal framework function.

Signed-off-by: default avatarLukasz Luba <l.luba@partner.samsung.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 2e6e902d
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -315,9 +315,7 @@ static void monitor_thermal_zone(struct thermal_zone_device *tz)
	mutex_unlock(&tz->lock);
	mutex_unlock(&tz->lock);
}
}


static void handle_non_critical_trips(struct thermal_zone_device *tz,
static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip)
				      int trip,
				      enum thermal_trip_type trip_type)
{
{
	tz->governor ? tz->governor->throttle(tz, trip) :
	tz->governor ? tz->governor->throttle(tz, trip) :
		       def_governor->throttle(tz, trip);
		       def_governor->throttle(tz, trip);
@@ -418,7 +416,7 @@ static void handle_thermal_trip(struct thermal_zone_device *tz, int trip)
	if (type == THERMAL_TRIP_CRITICAL || type == THERMAL_TRIP_HOT)
	if (type == THERMAL_TRIP_CRITICAL || type == THERMAL_TRIP_HOT)
		handle_critical_trips(tz, trip, type);
		handle_critical_trips(tz, trip, type);
	else
	else
		handle_non_critical_trips(tz, trip, type);
		handle_non_critical_trips(tz, trip);
	/*
	/*
	 * Alright, we handled this trip successfully.
	 * Alright, we handled this trip successfully.
	 * So, start monitoring again.
	 * So, start monitoring again.