From 14814a120a0366ef1168c62738a713099d49c283 Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Fri, 29 Mar 2019 09:49:45 +0800 Subject: [PATCH] kernel: change the charger full condition with tolerance change the charger full condition with tolerance Change-Id: Ia544309b142b9fc6e879c7f40701c2d303700e3d Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/1329520 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/power/supply/s2mu00x_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/s2mu00x_battery.c b/drivers/power/supply/s2mu00x_battery.c index 16e946f1c68a..77796a2b2672 100644 --- a/drivers/power/supply/s2mu00x_battery.c +++ b/drivers/power/supply/s2mu00x_battery.c @@ -1988,7 +1988,7 @@ static void check_charging_full( } /* 2. Full charged check */ - if ((battery->current_now >= 0 && battery->current_now < + if ((battery->current_now >= (-10) && battery->current_now < battery->pdata->charging_current[ battery->cable_type].full_check_current) && (battery->voltage_avg > battery->pdata->chg_full_vcell)) { -- 2.20.1