]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq24190_charger: Export 5V boost converter as regulator
authorHans de Goede <hdegoede@redhat.com>
Wed, 30 Aug 2017 09:48:11 +0000 (11:48 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 30 Aug 2017 15:31:51 +0000 (17:31 +0200)
commit0cc63f34e698c1b3849b86238a12c7f8dae85a5e
tree6d525b06268fbabd2d905b31e30d3ef40b701ac5
parent20f6b6e1f5b3c1297566d5ef746a5fd1197f4c02
power: supply: bq24190_charger: Export 5V boost converter as regulator

Register the 5V boost converter as a regulator named "usb_otg_vbus".

This commit also adds support for bq24190_platform_data, through which
non device-tree platforms can pass the regulator_init_data (containing
mappings for the consumer amongst other things).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/bq24190_charger.c
include/linux/power/bq24190_charger.h [new file with mode: 0644]