diff options
| author | Harry Yang <harryy@codeaurora.org> | 2016-08-31 16:07:30 -0700 |
|---|---|---|
| committer | Harry Yang <harryy@codeaurora.org> | 2016-09-07 00:45:05 -0700 |
| commit | 192d510128470c15c8371efd560929e34df87532 (patch) | |
| tree | da11c4daa10a4ce1dd01619c0f5108f38ecb1976 /drivers | |
| parent | 11d6060fffff4b7e87d1cadb5f65dfc7f74332cc (diff) | |
power_supply: add two properties for step charging
STEP_CHARGING_ENABLED indicates if step charging is enabled or not.
STEP_CHARGING_STEP reflects step charging phase.
Both properties are added for the purpose of testing and debugging.
CRs-Fixed: 1052854
Change-Id: I7d7517ab3f172016bb2f1c23fb2788bbd2d01086
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/power/power_supply_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index b1c3441b285a..545a1e684b25 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c @@ -227,6 +227,8 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(usb_otg), POWER_SUPPLY_ATTR(battery_charging_enabled), POWER_SUPPLY_ATTR(charging_enabled), + POWER_SUPPLY_ATTR(step_charging_enabled), + POWER_SUPPLY_ATTR(step_charging_step), POWER_SUPPLY_ATTR(pin_enabled), POWER_SUPPLY_ATTR(input_suspend), POWER_SUPPLY_ATTR(input_voltage_regulation), |
