aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2011-04-12 14:48:52 +0200
committerPhilippe Langlais <philippe.langlais@linaro.org>2011-07-22 15:40:43 +0200
commit096f9efb80392662b61891ae7657279f69a4cb74 (patch)
treeff9ae0d0ade8fed3f0edf596444f05c8ca4991f5 /include
parent91255c386e9f4b57071fe9831f9f5d16f86195e9 (diff)
power: ab8500-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. Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/ab8500/bm.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/mfd/ab8500/bm.h b/include/linux/mfd/ab8500/bm.h
index aacba93b912..0e7ed692dfa 100644
--- a/include/linux/mfd/ab8500/bm.h
+++ b/include/linux/mfd/ab8500/bm.h
@@ -446,11 +446,4 @@ struct ab8500_chargalg_platform_data {
char **supplied_to;
size_t num_supplicants;
};
-#ifdef CONFIG_AB8500_BM
-void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
-#else
-static void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA)
-{
-}
-#endif
#endif /* _AB8500_BM_H */