power: power_supply: add property for FCC stepper

Add power_supply property POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE
which reports the state of FCC stepped feature.

Change-Id: I0dcbf4a63f30f0003cbb57eaa4e8f1327ed91f7a
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
This commit is contained in:
Umang Agrawal 2018-05-22 17:05:14 +05:30
parent 5f1921ce4c
commit 68736f19d1
2 changed files with 2 additions and 0 deletions

View File

@ -382,6 +382,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(esr_nominal),
POWER_SUPPLY_ATTR(soh),
POWER_SUPPLY_ATTR(force_recharge),
POWER_SUPPLY_ATTR(fcc_stepper_enable),
/* Local extensions of type int64_t */
POWER_SUPPLY_ATTR(charge_counter_ext),
/* Properties of type `const char *' */

View File

@ -308,6 +308,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_ESR_NOMINAL,
POWER_SUPPLY_PROP_SOH,
POWER_SUPPLY_PROP_FORCE_RECHARGE,
POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
/* Properties of type `const char *' */