battery temp is zero during
power on
Change-Id: If07b1b50e4ee49034ddc6f2064bb5f97271565d0
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/
1290370
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_TEMP, &value);
if (ret < 0)
pr_err("%s: Fail to execute property\n", __func__);
- fuelgauge->temperature = value.intval;
+ fuelgauge->temperature = ntc_show_batt_temp();
#else
fuelgauge->temperature = s2mu106_get_temperature(fuelgauge);
#endif