Commit c365ee56 authored by LH Lin's avatar LH Lin Committed by Sebastian Reichel

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: default avatarLH Lin <lh.lin@mediatek.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 152ee3d1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment