charger-manager: Set current limit of regulator for over current protection
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 12 Jul 2012 06:03:29 +0000 (15:03 +0900)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 14 Jul 2012 01:31:17 +0000 (18:31 -0700)
commit45cd4fb28b43756afcd752ed1e8b3b836c1b1a2a
tree2c4d2303c772f4a149be6c4b9b8a0a2dd04d0aa9
parentbee737bccb03ebd27f2d52706e9aed2fa2c8dcc4
charger-manager: Set current limit of regulator for over current protection

This patch support the protection of host device from over current.
The Charger-manager set proper current limit of charger(regulator) for
charging according to type of charger cable when external connector
is attached.

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