OSDN Git Service

smb-lib: introduce votable to disable charging
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Fri, 8 Jul 2016 21:51:47 +0000 (14:51 -0700)
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Wed, 20 Jul 2016 23:55:04 +0000 (16:55 -0700)
commit14e3191326bace52dfef6d0fb8702882a55936c7
tree84874f6822cc399c77b0382557f470557f40ef05
parentb4713c2ca1a04552445a8fe7602fe1669f76fce4
smb-lib: introduce votable to disable charging

Currently the code doesn't have a votable to enable/disable charging. It
configures enable charging at the probe time.

Introduce disable charging votable in preparation of thermal use cases
where the charger is required to disable charging but keep the switcher
on, when thermal level is at its max.

Change-Id: I145c5ed44f9ce788bd3abc6ef6aee80466e248c6
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
drivers/power/qcom-charger/qpnp-smb2.c
drivers/power/qcom-charger/smb-lib.c
drivers/power/qcom-charger/smb-lib.h
drivers/power/qcom-charger/smb138x-charger.c