From: Jianhong Chen Date: Mon, 17 Oct 2016 02:31:12 +0000 (+0800) Subject: power: rk818-battery: restore coffset when update fail X-Git-Tag: firefly_0821_release~1390 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9c812075fdb0fdc4f87af6576e5c7877636dcd86;p=firefly-linux-kernel-4.4.55.git power: rk818-battery: restore coffset when update fail Change-Id: Ia1d02a0d340819bbca14e4f0931f9e94230cef78 Signed-off-by: Jianhong Chen --- 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; }