Revert "(CR): send charge rate uevent when power supply changes"

As the reverted patch may cause panic for race resource batt_uenvp
when it accesses batt_uenvp which was just freed in heartbeat work.

Mot-CRs-fixed: (CR)

This reverts commit 715a9d18d8fa6b7acfc9540f5e3df2c4332baf28.

Change-Id: I07f3bf2cba6f30b345988231d0ee8ea18da27e4f
Reviewed-on: https://gerrit.mot.com/1982785
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
yanyh2 2021-06-17 20:13:59 +08:00 • committed by Yonghua Yan
commit 5aa73a35c9

View file

@ -2032,12 +2032,6 @@ static int mmi_psy_notifier_call(struct notifier_block *nb, unsigned long val,
msecs_to_jiffies(0));
}
if (chip->batt_psy && chip->batt_uenvp[0]) {
kobject_uevent_env(&chip->batt_psy->dev.kobj,
KOBJ_CHANGE,
chip->batt_uenvp);
}
return NOTIFY_OK;
}