power: rk818_charger: get cable state when usb charge function init
authorMeng Dongyang <daniel.meng@rock-chips.com>
Tue, 11 Oct 2016 09:25:14 +0000 (17:25 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 13 Oct 2016 08:08:41 +0000 (16:08 +0800)
commit4221c07f2c1db32ffa44eed68bd7788ade2e4a9b
tree2f9f464ebcfe606d541b023e717e84bc08ce003d
parent454181a86dcc169d34120e2dd3dca89a2112560d
power: rk818_charger: get cable state when usb charge function init

RK818 will miss the notify of charge type changing because
the charge cable state is init when u2phy probe but rk818 probe after
u2phy. So we need to get the charge cable state when rk818 probe.

Change-Id: I3682d764ae3f9a56a1ba85ba8b81ea7f1aacdf49
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
drivers/power/rk818_charger.c