]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
power: supply: axp288_charger: Register extcon notifers after power_supply
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 Dec 2016 14:36:49 +0000 (15:36 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:02:39 +0000 (22:02 +0100)
commit42e2008a66a7e17ca0c4382ff676a9cfe7a633bd
tree09f987446b3844b989b710f4110d1df8a47f7724
parente3668e37f9078ccc1e938b9ddfc112877bbcf60a
power: supply: axp288_charger: Register extcon notifers after power_supply

The extcon notifier work calls power_supply_changed on the power_supply
we register, so the extcon notifiers should be registered after we
register the power_supply.

While touching this code anyways, refactor the code for the 3 cable types
into a loop to avoid code repetition.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp288_charger.c