power: supply: sc2731_charger: Add charger status detection
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 12 Nov 2018 10:52:36 +0000 (18:52 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 5 Dec 2018 22:51:58 +0000 (23:51 +0100)
commit18c807dbf9d6dabd624b2f4dcf5c668a42567c15
tree5639be97af2f15e6e32fb24d82138d61354c6406
parent8ac1091ed18b4a6cb0dc2cd5653f080736f89392
power: supply: sc2731_charger: Add charger status detection

The USB charger status can be notified before the charger driver registers
the USB phy notifier, so we should check the charger status in probe() in
case we missed the USB charger notification.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc2731_charger.c