power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED
authorTodd Poynor <toddpoynor@google.com>
Wed, 18 Jul 2012 23:28:50 +0000 (16:28 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:33 +0000 (13:53 -0800)
Change-Id: I3e93b502452811cbfc4d904202b4f1d94edc143d
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 9cd03c36a65c1315f8a0bfaf79ea07fb6ea40aa2..6725a7f6a9a9ebf33ee3042e8947d30f6a5e3458 100644 (file)
@@ -200,6 +200,7 @@ static struct device_attribute power_supply_attrs[] = {
        /* Local extensions */
        POWER_SUPPLY_ATTR(usb_hc),
        POWER_SUPPLY_ATTR(usb_otg),
+       POWER_SUPPLY_ATTR(charge_enabled),
        /* Properties of type `const char *' */
        POWER_SUPPLY_ATTR(model_name),
        POWER_SUPPLY_ATTR(manufacturer),
index 995996f5344f7c6a7a4ef3328c7c8772a1cfd75f..6544861435d3b17317c60787de193523c11e399a 100644 (file)
@@ -151,6 +151,7 @@ enum power_supply_property {
        /* Local extensions */
        POWER_SUPPLY_PROP_USB_HC,
        POWER_SUPPLY_PROP_USB_OTG,
+       POWER_SUPPLY_PROP_CHARGE_ENABLED,
        /* Properties of type `const char *' */
        POWER_SUPPLY_PROP_MODEL_NAME,
        POWER_SUPPLY_PROP_MANUFACTURER,