From: LH Lin Date: Wed, 29 Jul 2020 12:14:00 +0000 (+0800) Subject: power: supply: test_power: Fix battery_current initial value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c365ee561ee343b587df9f5ba191c1a090d4f43e;p=linux.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/test_power.c b/drivers/power/supply/test_power.c index b3c05ff05783f..04acd76bbaa12 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;