mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 14:43:27 -04:00
power: qpnp-smbcharger-mmi: Charge SM Compile Fix
Fix some errors with new compilers. Other products have broken builds so init some variables better. Change-Id: I92b74f8389bea5fe4125c51b076f529699dfd0ba Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com> Reviewed-on: https://gerrit.mot.com/1255118 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b7e0a5bea3
commit
a3771bcf7d
1 changed files with 3 additions and 0 deletions
|
|
@ -1564,6 +1564,8 @@ static void mmi_basic_charge_sm(struct smb_mmi_charger *chip,
|
|||
target_fcc = zone->fcc_max_ma;
|
||||
break;
|
||||
default:
|
||||
target_fv = max_fv_mv;
|
||||
target_fcc = zone->fcc_norm_ma;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1656,6 +1658,7 @@ static void mmi_heartbeat_work(struct work_struct *work)
|
|||
else
|
||||
hb_resch_time = HEARTBEAT_DELAY_MS;
|
||||
|
||||
chg_stat.charger_present = false;
|
||||
rc = get_prop_batt_voltage_now(chip, chip->bms_psy, &pval);
|
||||
if (rc < 0) {
|
||||
pr_err("Error getting Batt Voltage rc = %d\n", rc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue