ab8500-fg: Use correct battery charge full design
authorRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Wed, 30 May 2012 09:24:28 +0000 (14:54 +0530)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Jan 2013 14:39:20 +0000 (14:39 +0000)
commit1a793a10899487d40ac3071f52a6e231260d935d
tree39b04ee77ef7739107c45938383119e010ad0c45
parent3988043b0ee1104d4cca7c57bbc23b16ea798b6f
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: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com>
Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com>
Reviewed-by: Olivier CLERGEAUD <olivier.clergeaud@stericsson.com>
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Tested-by: Rupesh KUMAR <rupesh.kumar@stericsson.com>
Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
drivers/power/ab8500_fg.c