power: charger-manager: Check charging state right after completed initialization
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 26 Aug 2014 04:41:39 +0000 (13:41 +0900)
committerSebastian Reichel <sre@kernel.org>
Sat, 6 Sep 2014 19:03:19 +0000 (21:03 +0200)
commitb1022e247872dc87a6ffd6f9aa6a92e0b67cdf00
tree9f2763d406cdd6534ad998a8b809b0cd9e37fe57
parentc6738d06a363ac7010a5c3b54e2af1957852cc45
power: charger-manager: Check charging state right after completed initialization

This patch check the charging state after completed initialization of charger-
manager and update current charging state. If charger-manager never check and
update current charging state, charger-manager would have the mismatch issue
between real state of cable connection and the charging state of charger-manager
until first polling time of charger-manager.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/charger-manager.c