OSDN Git Service

power: power_supply: add property for FCC stepper
authorAshay Jaiswal <ashayj@codeaurora.org>
Tue, 12 Jun 2018 18:00:50 +0000 (23:30 +0530)
committerAshay Jaiswal <ashayj@codeaurora.org>
Thu, 14 Jun 2018 09:59:34 +0000 (15:29 +0530)
Add power_supply property POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE
which reports the state of FCC stepped feature.

Change-Id: Ibbb6e6fa7bba6b804a94bb93ddc75e5dfe0afdd1
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 2e9ff2a..1974d6e 100644 (file)
@@ -305,6 +305,7 @@ static struct device_attribute power_supply_attrs[] = {
        POWER_SUPPLY_ATTR(pd_voltage_max),
        POWER_SUPPLY_ATTR(pd_voltage_min),
        POWER_SUPPLY_ATTR(sdp_current_max),
+       POWER_SUPPLY_ATTR(fcc_stepper_enable),
        /* Local extensions of type int64_t */
        POWER_SUPPLY_ATTR(charge_counter_ext),
        /* Properties of type `const char *' */
index 64d0797..6828063 100644 (file)
@@ -260,6 +260,7 @@ enum power_supply_property {
        POWER_SUPPLY_PROP_PD_VOLTAGE_MAX,
        POWER_SUPPLY_PROP_PD_VOLTAGE_MIN,
        POWER_SUPPLY_PROP_SDP_CURRENT_MAX,
+       POWER_SUPPLY_PROP_FCC_STEPPER_ENABLE,
        /* Local extensions of type int64_t */
        POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
        /* Properties of type `const char *' */