diff options
author | Kalle Komierowski <karl.komierowski@stericsson.com> | 2011-08-25 11:16:07 +0200 |
---|---|---|
committer | Bibek BASU <bibek.basu@stericsson.com> | 2011-09-22 12:30:51 +0200 |
commit | 3c2357fb81f2c93d6386a9c9d31e4868a1187436 (patch) | |
tree | 8b21eeaed4ba04ceab3efaa9cfada3aad722c964 /include | |
parent | bca54fab636b5187669048b5ce2f15ed1e4c5812 (diff) |
power: ab8500_bm: Add interface to reinit FG algorithm
A function has been added to enable reinitialisation of the
fuel gauge algorithm. This can be used to to reinitialise with
a different battery voltage at start-up, for verification reasons.
ST-Ericsson ID: 357480
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I1ba9775e3c26f49fe746e56c01dce0d5ba8384b3
Signed-off-by: Kalle Komierowski <karl.komierowski@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31676
Reviewed-by: Bibek BASU <bibek.basu@stericsson.com>
Tested-by: Bibek BASU <bibek.basu@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/ab8500/bm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/bm.h b/include/linux/mfd/ab8500/bm.h index 0bd8703b2bd..1fb67d25deb 100644 --- a/include/linux/mfd/ab8500/bm.h +++ b/include/linux/mfd/ab8500/bm.h @@ -474,6 +474,7 @@ struct ab8500_btemp; struct ab8500_gpadc; struct ab8500_fg; #ifdef CONFIG_AB8500_BM +void ab8500_fg_reinit(void); void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA); struct ab8500_btemp *ab8500_btemp_get(void); int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp); @@ -481,6 +482,9 @@ struct ab8500_fg *ab8500_fg_get(void); int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev); int ab8500_fg_inst_curr_nonblocking(struct ab8500_fg *dev, int *local_result); #else +static void ab8500_fg_reinit(void) +{ +} static void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA) { } |