power: supply: bq25890: Add support for registering the Vbus boost converter as a...
authorHans de Goede <hdegoede@redhat.com>
Tue, 1 Feb 2022 13:06:56 +0000 (14:06 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 1 Feb 2022 13:55:12 +0000 (14:55 +0100)
commit79d35365a5858466ff7b37aaf1fcf11b683b9442
treee695bb611efbae1ed8395fa4de167c9321575b8d
parent5575802d78b8c6130aaecb33f700b379f1fe5ecd
power: supply: bq25890: Add support for registering the Vbus boost converter as a regulator

The bq25890_charger code supports enabling/disabling the boost converter
based on usb-phy notifications. But the usb-phy framework is not used on
all boards/platforms. At support for registering the Vbus boost converter
as a standard regulator when there is no usb-phy on the board.

Also add support for providing regulator_init_data through platform_data
for use on boards where device-tree is not used and the platform code must
thus provide the regulator_init_data.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c
include/linux/power/bq25890_charger.h [new file with mode: 0644]