From 9c812075fdb0fdc4f87af6576e5c7877636dcd86 Mon Sep 17 00:00:00 2001 From: Jianhong Chen Date: Mon, 17 Oct 2016 10:31:12 +0800 Subject: [PATCH] power: rk818-battery: restore coffset when update fail Change-Id: Ia1d02a0d340819bbca14e4f0931f9e94230cef78 Signed-off-by: Jianhong Chen --- drivers/power/rk818_battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/rk818_battery.c b/drivers/power/rk818_battery.c index fd0e2a4644e7..f9e6d8f7c4bd 100644 --- a/drivers/power/rk818_battery.c +++ b/drivers/power/rk818_battery.c @@ -693,6 +693,8 @@ static bool rk818_bat_adc_calib(struct rk818_battery *di) } } + rk818_bat_set_coffset(di, save_coffset); + return false; } -- 2.34.1