]> git.baikalelectronics.ru Git - kernel.git/commit
charger-manager: Disable regulator when charger cable is detached
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Jul 2012 05:01:34 +0000 (14:01 +0900)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 03:08:28 +0000 (20:08 -0700)
commit7a798748c26bcfaf0cff971c682e59f1abed67b4
tree9104ac5f913221c52052431245bdbf3902345bae
parent08dee057feeda7b350e2a5a6efac0b6b2e2856da
charger-manager: Disable regulator when charger cable is detached

This patch disable regulator for charging when charger cable is detached
before stopping charging forcibly on abnormal battery state and check
return value of regulator_enable/disable() function to confirm correct
operation of enabling or disabling regulator for charging.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/charger-manager.c