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

Commit f5f49499 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

smb-lib: Remove THERMAL_DAEMON_VOTER on PL_DISABLE



Remove THERMAL_DAEMON_VOTER on PL_DISABLE so that we can keep parallel
charging enabled after thermal kicks in which benefits thermal
mitigation further.

CRs-Fixed: 2166225
Change-Id: Idad999b0cbc8b5073893d873dc03a572e3071ba8
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 5a580c0a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2079,9 +2079,6 @@ int smblib_set_prop_system_temp_level(struct smb_charger *chg,
		return -EINVAL;

	chg->system_temp_level = val->intval;
	/* disable parallel charge in case of system temp level */
	vote(chg->pl_disable_votable, THERMAL_DAEMON_VOTER,
			chg->system_temp_level ? true : false, 0);

	if (chg->system_temp_level == chg->thermal_levels)
		return vote(chg->chg_disable_votable,