提交 1a793a10 编写于 作者: R Rajkumar Kasirajan 提交者: Lee Jones

ab8500-fg: Use correct battery charge full design

If battery is not identified while fg probe, mah_max_design gets
initialized with unknown battery's charge full design. Reinitialize
mah_max_design if battery is identified after fg probe.
Signed-off-by: NRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Reviewed-by: NVijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: NMarcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: NOlivier CLERGEAUD <olivier.clergeaud@stericsson.com>
Reviewed-by: NArun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: NRabin VINCENT <rabin.vincent@stericsson.com>
Tested-by: NRupesh KUMAR <rupesh.kumar@stericsson.com>
Tested-by: NJonas ABERG <jonas.aberg@stericsson.com>
上级 3988043b
......@@ -2250,7 +2250,8 @@ static int ab8500_fg_get_ext_psy_data(struct device *dev, void *data)
case POWER_SUPPLY_PROP_TECHNOLOGY:
switch (ext->type) {
case POWER_SUPPLY_TYPE_BATTERY:
if (!di->flags.batt_id_received) {
if (!di->flags.batt_id_received &&
di->bm->batt_id != BATTERY_UNKNOWN) {
const struct abx500_battery_type *b;
b = &(di->bm->bat_type[di->bm->batt_id]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册