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)
commit66b6bef2c4e06f8c7a0030445766bf868110c5a1
tree6d525b06268fbabd2d905b31e30d3ef40b701ac5
parent14e1a131b5ebc4ed7d166f08d1a669d4ce6d2760
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]