]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0550e1a5fcdb5acdedd4037f6dd0280172fb1e9
treee695bb611efbae1ed8395fa4de167c9321575b8d
parentbae7f77cd5df34b4c8c15c5041472471afd0ff2e
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]