power: supply: bq24190_charger: Enable devicetree config
authorLiam Breck <kernel@networkimprov.net>
Mon, 28 Aug 2017 21:23:47 +0000 (14:23 -0700)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Aug 2017 21:08:38 +0000 (23:08 +0200)
commita4c7590b8dc44919574fd316db89423197584350
treec8a305e5c3775add5cb84b843a1df58f5abc9d30
parent3c72785a323e561dc4d1be27fb4cb46a74ec9703
power: supply: bq24190_charger: Enable devicetree config

Add get_config(). Rename set_mode_host() to set_config().
Call get_config() and hw_init() after power_supply_register().
No functional changes.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/bq24190_charger.c