charger-manager: Check fully charged state of battery periodically
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 21 Aug 2012 08:06:52 +0000 (17:06 +0900)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 05:07:49 +0000 (22:07 -0700)
commit2ed9e9b6530951b5b96185e6761119361a166d7a
treedd5e298b0102b3dcb611be6710a2bed536c2741b
parentb9633ef1a9cdf4317d8c4a8db977485e2a8e1cb8
charger-manager: Check fully charged state of battery periodically

This patch check periodically fully charged state of battery to protect
overcharge and overheat. If battery is fully charged, stop charging and
check droped voltage with 'fullbatt_vchkdrop_ms' period. When voltage of
battery is more droped than 'fullbatt_vchkdrop_uV' voltage,
charger-manager will restart charging for battery.

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
include/linux/power/charger-manager.h