commit | 36c56ac0f8977ac189d27a7aa401ea9dca678c5d | [log] [tgz] |
---|---|---|
author | Hans de Goede <hdegoede@redhat.com> | Wed Dec 14 17:38:50 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Oct 08 10:26:03 2017 +0200 |
tree | 4eb059679c9d6499c0fac6d883b032c8f9f2c04a | |
parent | 0cde56d3b6721e8a69260861d268a8adcc6fcd33 [diff] |
power: supply: axp288_fuel_gauge: Fix fuel_gauge_reg_readb return on error [ Upstream commit 6f074bc878dc9b00c0df0bf3a8cb1d9e294cd881 ] If reading the register fails, return the actual error code, instead of the uninitialized val variable; Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>