power: supply: axp288_charger: Fix initial constant_charge_current value
commitf2a42595f0865886a2d40524b0e9d15600848670
authorHans de Goede <hdegoede@redhat.com>
Wed, 23 May 2018 13:33:21 +0000 (23 15:33 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 6 Jul 2018 15:19:37 +0000 (6 17:19 +0200)
treea46b023ff460024fec9058555d64377d67e05271
parentada1de89f34ea338fb4406e61dc1a95edcf65213
power: supply: axp288_charger: Fix initial constant_charge_current value

We should look at val which contains the value read from the register,
not ret which is always 0 on a successful read.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fixes: eac53b3664f59 ("power: supply: axp288_charger: Drop platform_data dependency")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_charger.c