summaryrefslogtreecommitdiff
path: root/drivers/power/pmu_battery.c
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2011-09-21 11:22:59 +0530
committerSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>2011-09-22 12:24:15 +0200
commit4bbfac33cc8b4670dd27c7e49002308baf41b787 (patch)
treeb4b5b2b9c2814338329995daaa5fa51fc93ef752 /drivers/power/pmu_battery.c
parentdacc378d3827cb270504048e0eab888784ceb3be (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 'drivers/power/pmu_battery.c')
0 files changed, 0 insertions, 0 deletions