test_power: Add CHARGE_COUNTER properties
authorlecopzer@gmail.com <lecopzer@gmail.com>
Thu, 12 Sep 2019 18:25:59 +0000 (02:25 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 10 Oct 2019 16:32:48 +0000 (18:32 +0200)
commit4b082ac6b7687d564065cdb65393b8d1ed5e1a03
treeb61f40d8cfa1a9d431f8e469accf131c52246d7c
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
test_power: Add CHARGE_COUNTER properties

CHARGE_COUNTER is really general in other power supply drivers and
Android also has an interface to monitor CHARGE_COUNTER, so let's
add it into test framework.

Set default as -1000 is because the default status is
POWER_SUPPLY_STATUS_DISCHARGING, which means the counter should be
negative, and 1000 means not zero but small enough.

Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/test_power.c