Revert "(CR): mmi_charger: Fix battery_supply_init, batt_psy."

This reverts commit 993a25647b7c117aa576684ea553a62c00fe7b66.

This change does not match the purpose of mmi_charger design, it will
get mmi_charger controlling logic mess and break the exist factory
test rule and method.

Mot-CRs-fixed: (CR)

Change-Id: I8b44d53f4f2a24bc9b3035a2e776f91503b3de23
Reviewed-on: https://gerrit.mot.com/2066277
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wentao Xu <xuwt2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Yonghua Yan 2021-09-14 05:28:56 -05:00
commit 1b05406882

View file

@ -859,7 +859,7 @@ static void mmi_battery_supply_init(struct mmi_charger_chip *chip)
if (chip->batt_psy)
return;
chip->batt_psy = power_supply_get_by_name("mmi_battery");
chip->batt_psy = power_supply_get_by_name("battery");
if (!chip->batt_psy) {
mmi_err(chip, "No battery supply found\n");
return;