From 192d510128470c15c8371efd560929e34df87532 Mon Sep 17 00:00:00 2001 From: Harry Yang Date: Wed, 31 Aug 2016 16:07:30 -0700 Subject: 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 --- drivers/power/power_supply_sysfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') 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), -- cgit v1.2.3