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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:53 +0000 (13:40 -0700)
Change-Id: I3e93b502452811cbfc4d904202b4f1d94edc143d
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 836d57f55950a321913123c065ea2cee03b92fda..5a5fef4447e35638a9866b3890ae0d0d3df0273c 100644 (file)
@@ -192,6 +192,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 22e1196b0bc8e88460bbbb55082e313ecdf7ed7c..19778d7cb4b47ef40f5761384665376cae5228ab 100644 (file)
@@ -143,6 +143,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,