2snd Fuelgauge SM5602 move temp coefficient to ext channel

2Snd Fuelgauge SM5602 move temperature coefficient
to ext channel

Change-Id: Id62c661fe7b534775891c9350efe36b261b4f53c
Signed-off-by: huaqin85 <huaqin85@motorola.com>
Reviewed-on: https://gerrit.mot.com/2167222
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
huaqin85 2022-01-11 17:01:55 +08:00
commit b7578c2dbf

View file

@ -538,14 +538,14 @@ static int fg_read_temperature(struct sm_fg_chip *sm, enum sm_fg_temperature_typ
} else {
temp = _calculate_battery_temp_ex(sm, data);
}
pr_info("fg_read_temperature_ex temp_ex=%d\n", temp);
temp = temp * 10;
pr_info("fg_read_temperature_ex temp_ex=%d\n", temp);
break;
default:
return -EINVAL;
}
temp = temp * 10;
return temp;
}