power: supply: bq27xxx: fix polarity of current_now
[ Upstream commit cd060b4d ] current_now has to be negative during discharging and positive during charging, the behavior seen is the other way round. Tested on GTA04 with Openmoko battery. Signed-off-by:Andreas Kemnade <andreas@kemnade.info> Signed-off-by:
Sebastian Reichel <sebastian.reichel@collabora.com> Stable-dep-of: 35092c58 ("power: supply: bq27xxx: Add cache parameter to bq27xxx_battery_current_and_status()") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading