power: supply: charger-manager: Collect all power_supply_changed() calls
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Thu, 14 May 2020 23:04:30 +0000 (16:04 -0700)
committerSebastian Reichel <sre@kernel.org>
Fri, 28 Aug 2020 17:27:41 +0000 (19:27 +0200)
commitdfc63825aa15daa1d335e2291741949fd001b782
treeb44fd70ff6a773d266e372f506881d6a41eb7017
parent0a9e0f94bfcfbaf0bd124fa7af7b281bbda3bcca
power: supply: charger-manager: Collect all power_supply_changed() calls

Current charger-manager calls power_supply_changed() whenever charging
status is changed. Remove the separated power_supply_changed() calls
and let it be called at end of try_charger_enable() function which
is called to set charging/discharging.

Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c