power: supply: ab8500: Rename charging algorithm psy
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Jul 2021 15:27:08 +0000 (17:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 16 Jul 2021 13:14:30 +0000 (15:14 +0200)
commit661d10ee0f1be7e3e08267b8364439980d02a42c
treec2a98c92bb9f5886ba4da0e21fd7b45e865e83b5
parent484a9cc3dcb867813fca62f6443c1e77a1ae3c27
power: supply: ab8500: Rename charging algorithm psy

If we rename the "abx500_chargalg" supply to "ab8500_chargalg"
as it should be named, the existing supplies are supplying that
supply but that was obviously not working since it had the
wrong name.

Now that the dependency kicks in we get a bunch
of NULL references from ab8500_chargalg_external_power_changed()
so check that the workqueue is allocated before we try to
queue work on it.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_chargalg.c