summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2016-08-02 13:43:58 -0700
committerNicholas Troast <ntroast@codeaurora.org>2016-08-02 14:02:41 -0700
commit9c585526980f4ed9916a67a052d7eafa3bc014f8 (patch)
treeeadf3bb7a38afc41e05cea6d3b5d8f790ecc711c /drivers
parent8c5c49fdb240349632bcb0d3379c0f19562573a1 (diff)
power_supply: add PIN_ENABLED property
Hardware disables the parallel charger via the CHG_EN pin. Add a new property called PIN_ENABLED which reflects the status of the CHG_EN pin. Change-Id: I79f95b145176b66d6b8cec5a21922ea16c2c8206 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/power_supply_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index 61f611296ad6..9a8f3a242b4a 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -225,9 +225,9 @@ static struct device_attribute power_supply_attrs[] = {
/* Local extensions */
POWER_SUPPLY_ATTR(usb_hc),
POWER_SUPPLY_ATTR(usb_otg),
- POWER_SUPPLY_ATTR(charge_enabled),
POWER_SUPPLY_ATTR(battery_charging_enabled),
POWER_SUPPLY_ATTR(charging_enabled),
+ POWER_SUPPLY_ATTR(pin_enabled),
POWER_SUPPLY_ATTR(input_suspend),
POWER_SUPPLY_ATTR(input_voltage_regulation),
POWER_SUPPLY_ATTR(input_current_max),