power: supply: axp288_fuel_gauge: Fix fuel_gauge_reg_readb return on error
[ Upstream commit 6f074bc8 ] 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>
Showing
Please register or sign in to comment