OSDN Git Service

smb-lib: report not charging when battery is missing
authorNicholas Troast <ntroast@codeaurora.org>
Fri, 23 Sep 2016 18:50:18 +0000 (11:50 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Thu, 6 Oct 2016 21:55:14 +0000 (14:55 -0700)
commit40af50ac19b45542698983089321ec4e28764496
tree760600f49b9fe66ce02e53ad51af554635fd143e
parent477a7554f3e8ef966cb425adf75618661e8a5305
smb-lib: report not charging when battery is missing

When the battery is missing from the device the battery power supply
will still report that it is charging. Fix this by reporting the charge
status as "not charging" when the battery is missing.

Change-Id: I1150ccaa722109f3ea6a4a10e026709d3686e28b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
drivers/power/qcom-charger/smb-lib.c
drivers/power/qcom-charger/smb-reg.h