power: bq25890: use proper CURRENT_NOW property for I_BAT
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 4 May 2020 19:47:30 +0000 (21:47 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 10 May 2020 20:55:22 +0000 (22:55 +0200)
commit1e4724d0b7d1db3b7307fc95fb902a97f4a7b85a
treefae9663b2c0abf17f6d7cb7ea834477cb6aa71d9
parent0383024f811aa469df258039807810fc3793a105
power: bq25890: use proper CURRENT_NOW property for I_BAT

Charge Current is more apropriately reflected by CURRENT_NOW property
(measured current) than CONSTANT_CURRENT_VOLTAGE (configured CC-phase
current limit). Fix the reference and make the sign reflect direction
of the current.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c