]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68a1eadf43840823574b6d83152d4471756ae6ff
tree5639be97af2f15e6e32fb24d82138d61354c6406
parent3329525ad207481f3c037b84a54e92999f70e614
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