power: rk818-battery: fix battery charging state report error
authorJianhong Chen <chenjh@rock-chips.com>
Mon, 19 Jun 2017 12:14:50 +0000 (20:14 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 21 Jun 2017 06:07:17 +0000 (14:07 +0800)
commita51aee4744ce6921348e93e726fe84a599b06370
treef17106925d1a25c611d417bed3e5de22c1839e80
parenta427c4297921818127f256849f475a00c9d383fe
power: rk818-battery: fix battery charging state report error

RK818_VB_MON_REG register needs at least 100ms to be correct
status for checking whether charger is online or offline.
So We search power_supply_class to get usb and ac psy for
charging state.

Change-Id: Ic332c055100309481d0dcd6d4bf030cc8db77d2d
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
drivers/power/rk818_battery.c