diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-05-23 00:50:42 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-06-03 18:40:15 +0200 |
commit | f9184a228d7a60ad56b810d549a7debb355f1be6 (patch) | |
tree | 8fd0c6be971341c749f0e4faaa65eb7a1f140f9b /drivers/power/supply/ab8500-bm.h | |
parent | power: supply: ab8500: Avoid NULL pointers (diff) | |
download | linux-f9184a228d7a60ad56b810d549a7debb355f1be6.tar.xz linux-f9184a228d7a60ad56b810d549a7debb355f1be6.zip |
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>
Diffstat (limited to 'drivers/power/supply/ab8500-bm.h')
-rw-r--r-- | drivers/power/supply/ab8500-bm.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/supply/ab8500-bm.h b/drivers/power/supply/ab8500-bm.h index 012595a9d269..871bdc1f5cbd 100644 --- a/drivers/power/supply/ab8500-bm.h +++ b/drivers/power/supply/ab8500-bm.h @@ -507,8 +507,6 @@ struct abx500_bm_data { int bkup_bat_v; int bkup_bat_i; bool autopower_cfg; - bool ac_enabled; - bool usb_enabled; bool no_maintenance; bool capacity_scaling; bool chg_unknown_bat; |