power: supply: axp288_charger: Move init_hw_regs call before supply registration
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 Dec 2016 14:36:50 +0000 (15:36 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:02:47 +0000 (22:02 +0100)
commitd96e07350ab912420f4edc39017660591b0d177c
treeafb15b567d1507a368c4bc059c0b236ff086a2af
parent42e2008a66a7e17ca0c4382ff676a9cfe7a633bd
power: supply: axp288_charger: Move init_hw_regs call before supply registration

Move the charger_init_hw_regs() above the power_supply_register call,
the axp288_charger_usb_set_property() uses axp288_chrg_info.max_cv and
.max_cc which get set by charger_init_hw_regs().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp288_charger.c