summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-12-05 11:49:10 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:15 +0200
commit2cba36356d6b4ae61040e4e967526c4bca4b0076 (patch)
tree26c0831957ace9b4aed67c684f7a9cb4dee8cdcb /include
parent79792248054be397b142f7c235503784b5006857 (diff)
ab5500_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 Linux next: NA ST-Ericsson ID: 357480 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I80d6e770a57affbe7f3af0fdf82052ca1b7fe8b4 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/40903 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/abx500/ab5500-bm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ab5500-bm.h b/include/linux/mfd/abx500/ab5500-bm.h
index cfad11c530c..05ebc8c3840 100644
--- a/include/linux/mfd/abx500/ab5500-bm.h
+++ b/include/linux/mfd/abx500/ab5500-bm.h
@@ -101,6 +101,7 @@
#ifdef CONFIG_AB5500_BM
struct ab5500_btemp *ab5500_btemp_get(void);
int ab5500_btemp_get_batctrl_temp(struct ab5500_btemp *btemp);
+void ab5500_fg_reinit(void);
#else
static inline struct ab5500_btemp *ab5500_btemp_get(void)
{
@@ -110,5 +111,6 @@ static inline int ab5500_btemp_get_batctrl_temp(struct ab5500_btemp *btemp)
{
return 0;
}
+static inline void ab5500_fg_reinit(void) {}
#endif
#endif /* _AB5500_BM_H */