]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: axp288_charger: Fix initial constant_charge_current value
authorHans de Goede <hdegoede@redhat.com>
Wed, 23 May 2018 13:33:21 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:00:46 +0000 (17:00 -0700)
commit914b4daa9b6d00b520e136e5a10f5286b4d211f3
tree74fdca65be3b8e76203f30250e5c821a8991e2fd
parent2efa4bd5aa9ad8dda2fcc44d56ac8417cd7fc43d
power: supply: axp288_charger: Fix initial constant_charge_current value

[ Upstream commit f2a42595f0865886a2d40524b0e9d15600848670 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/axp288_charger.c