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

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

Merge "power: qpnp-fg-gen4: schedule pl_current_en_work conditionally"

parents a94cd147 eb74a947
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, 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
@@ -3220,6 +3220,8 @@ static void status_change_work(struct work_struct *work)
	if (rc < 0)
		pr_err("Error in adjusting FCC for ESR, rc=%d\n", rc);

	if (is_parallel_charger_available(fg) &&
		!delayed_work_pending(&chip->pl_current_en_work))
		schedule_delayed_work(&chip->pl_current_en_work, 0);

	ttf_update(chip->ttf, input_present);