]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e5ef880e45480022dc8e6169e23367f055c6ab8
tree8fd0c6be971341c749f0e4faaa65eb7a1f140f9b
parent6cee1982d7f4ffd3212747ba8c2531de338dcccf
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