diff options
author | LH Lin <lh.lin@mediatek.com> | 2020-07-29 14:14:00 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-07-29 19:43:49 +0200 |
commit | c365ee561ee343b587df9f5ba191c1a090d4f43e (patch) | |
tree | 0708b170373998e11ff930826089403dff04b280 /drivers/power | |
parent | power: supply: Fix kerneldoc of power_supply_temp2resist_simple() (diff) | |
download | linux-c365ee561ee343b587df9f5ba191c1a090d4f43e.tar.xz linux-c365ee561ee343b587df9f5ba191c1a090d4f43e.zip |
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.c | 2 |
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; |