power: supply: test_power: Fix battery_current initial value
authorLH Lin <lh.lin@mediatek.com>
Wed, 29 Jul 2020 12:14:00 +0000 (20:14 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 29 Jul 2020 17:43:49 +0000 (19:43 +0200)
commitc365ee561ee343b587df9f5ba191c1a090d4f43e
tree0708b170373998e11ff930826089403dff04b280
parent152ee3d1afbee08c88dc37048ee26a3edacbef90
power: supply: test_power: Fix battery_current initial value

Since default battery_status is POWER_SUPPLY_STATUS_DISCHARGING,
we should change default battery_current to a negative value.

Signed-off-by: LH Lin <lh.lin@mediatek.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/test_power.c