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

Commit 271536fc authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power: qcom: step-chg: Add notification on changing FCC



Call power supply changed to notify the clients that
the FCC value has been changed according to JEITA conditions.

CRs-Fixed: 2200348

Change-Id: I33bc5d7bd1bae6a348a5c8ba46adb1e596d3d46a
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 527728ac
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ struct step_chg_info {
	struct wakeup_source	*step_chg_ws;
	struct power_supply	*batt_psy;
	struct power_supply	*bms_psy;
	struct power_supply	*main_psy;
	struct delayed_work	status_change_work;
	struct delayed_work	get_config_work;
	struct notifier_block	nb;
@@ -534,6 +535,12 @@ static int handle_jeita(struct step_chg_info *chip)

update_time:
	chip->jeita_last_update_time = ktime_get();

	if (!chip->main_psy)
		chip->main_psy = power_supply_get_by_name("main");
	if (chip->main_psy)
		power_supply_changed(chip->main_psy);

	return 0;

reschedule: