summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorLH Lin <lh.lin@mediatek.com>2020-07-29 20:14:00 +0800
committerSebastian Reichel <sre@kernel.org>2020-07-29 19:43:49 +0200
commitc365ee561ee343b587df9f5ba191c1a090d4f43e (patch)
tree0708b170373998e11ff930826089403dff04b280 /drivers/power
parent152ee3d1afbee08c88dc37048ee26a3edacbef90 (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/test_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/test_power.c b/drivers/power/supply/test_power.c
index b3c05ff05783..04acd76bbaa1 100644
--- a/drivers/power/supply/test_power.c
+++ b/drivers/power/supply/test_power.c
@@ -34,7 +34,7 @@ static int battery_technology = POWER_SUPPLY_TECHNOLOGY_LION;
static int battery_capacity = 50;
static int battery_voltage = 3300;
static int battery_charge_counter = -1000;
-static int battery_current = 1600;
+static int battery_current = -1600;
static bool module_initialized;