use discharging interval for FULL battery status

Keep the same delay work interval as discharging status for
FULL battery status to reduce battery status updating and log
printing for power save.

Change-Id: Iedca4ad8706dbeee9d7de9258e21c3e0ed4f3234
Signed-off-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2508996
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Yonghua Yan 2023-02-11 10:31:23 +08:00
commit a90e5819ea

View file

@ -2223,7 +2223,8 @@ static void mmi_charger_heartbeat_work(struct work_struct *work)
if (chip->factory_mode)
hb_resch_time = HEARTBEAT_FACTORY_MS;
else if (chip->max_charger_rate != MMI_POWER_SUPPLY_CHARGE_RATE_NONE)
else if (chip->max_charger_rate != MMI_POWER_SUPPLY_CHARGE_RATE_NONE
&& chip->combo_status != POWER_SUPPLY_STATUS_FULL)
hb_resch_time = chip->heartbeat_interval;
else
hb_resch_time = chip->heartbeat_dischg_ms;