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:
Kenny Kessler 2018-10-12 14:09:22 -05:00 • committed by Kenneth Kessler
commit a3771bcf7d

View file

@ -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);