kernel-4.19\drivers\misc\mediatek\power\mt6771\mtk_battery_intf.c
signed int battery_get_uisoc(void)
{
struct mtk_battery *gm = get_mtk_battery();
if (gm != NULL) {
int boot_mode = gm->boot_mode;
- if ((boot_mode == META_BOOT) ||
- (boot_mode == ADVMETA_BOOT) ||
+ if ((boot_mode == ADVMETA_BOOT) ||
(boot_mode == FACTORY_BOOT) ||
(boot_mode == ATE_FACTORY_BOOT))
return 75;
- else if (boot_mode == 0)
+ else if ((boot_mode == 0) || (boot_mode == META_BOOT))
return gm->ui_soc;
}
return 50;
}