power: supply: ab8500: Enable USB and AC
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 22 May 2021 22:50:42 +0000 (00:50 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 3 Jun 2021 16:40:15 +0000 (18:40 +0200)
commitf9184a228d7a60ad56b810d549a7debb355f1be6
tree8fd0c6be971341c749f0e4faaa65eb7a1f140f9b
parent5bcb5087c9dd3dca1ff0ebd8002c5313c9332b56
power: supply: ab8500: Enable USB and AC

The vendor code tree supplies platform data to enable he
USB charging for AB8500 and AB8500 and disable the AC
charging on the AB8505. This was missed when the driver
was submitted to the mainline kernel.

Fix this by doing what the vendor kernel does: always
register the USB charger, do not register the AC charger
on the AB8505.

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