summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-09-21 11:22:59 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:00:53 +0200
commitf9c1042a8ca7c190545f14aec43285e38277fd84 (patch)
treeeaa267bacd025db8b15c68990820886ca79c6b9d /include
parent0c39da75fc4ea5f8b0c5f13c65c36161ae8ea57d (diff)
power: ab5500-bm: update usb state change interface to otg notifier
Remove usb_state_changed() exported function. Replace it with otg notifier call. This makes static_di redundant so it is removed. Moreover, there is no need to protect usb_state.usb_changed with usb_lock. So usb_lock is removed as well. Usb state is fabricated based on the reported mA. State is not as accurate as reading it directly from the usb controller. This should not matter as battery- manager driver should care more about mA than the state anyway. Change-Id: I180062a87ca773b5c215aee3ef1c60315d309d42 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/31577 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/abx500/ab5500-bm.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mfd/abx500/ab5500-bm.h b/include/linux/mfd/abx500/ab5500-bm.h
index f62137a6e9d..cfad11c530c 100644
--- a/include/linux/mfd/abx500/ab5500-bm.h
+++ b/include/linux/mfd/abx500/ab5500-bm.h
@@ -99,13 +99,9 @@
#define BATTERY_UNKNOWN 0
#ifdef CONFIG_AB5500_BM
-void ab5500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
struct ab5500_btemp *ab5500_btemp_get(void);
int ab5500_btemp_get_batctrl_temp(struct ab5500_btemp *btemp);
#else
-static void ab5500_charger_usb_state_changed(u8 bm_usb_state, u16 mA)
-{
-}
static inline struct ab5500_btemp *ab5500_btemp_get(void)
{
return 0;