From: xuwei9 Date: Mon, 7 Jan 2019 07:18:43 +0000 (+0800) Subject: kernel:battery temperature is zero during power on X-Git-Tag: MMI-QSAS30.62-33-3~309 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a63cf9f6315d43e7f4bc00efa245c4f413e9a19;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kernel:battery temperature is zero during power on battery temp is zero during power on Change-Id: If07b1b50e4ee49034ddc6f2064bb5f97271565d0 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1290370 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/power/supply/s2mu106_fuelgauge.c b/drivers/power/supply/s2mu106_fuelgauge.c index fb618ac7e4df..b3297c511ba9 100755 --- a/drivers/power/supply/s2mu106_fuelgauge.c +++ b/drivers/power/supply/s2mu106_fuelgauge.c @@ -1016,7 +1016,7 @@ static int s2mu106_get_rawsoc(struct s2mu106_fuelgauge_data *fuelgauge) 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