Skip to content

Commit c365ee5

Browse files
LH Linsre
authored andcommitted
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 152ee3d commit c365ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/test_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int battery_technology = POWER_SUPPLY_TECHNOLOGY_LION;
3434
static int battery_capacity = 50;
3535
static int battery_voltage = 3300;
3636
static int battery_charge_counter = -1000;
37-
static int battery_current = 1600;
37+
static int battery_current = -1600;
3838

3939
static bool module_initialized;
4040

0 commit comments

Comments
 (0)