From: Todd Poynor Date: Wed, 18 Jul 2012 23:28:50 +0000 (-0700) Subject: power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED X-Git-Tag: firefly_0821_release~4090^2~706 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e421b24ba66f380922680a8f3db42245b2202300;p=firefly-linux-kernel-4.4.55.git power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED Change-Id: I3e93b502452811cbfc4d904202b4f1d94edc143d Signed-off-by: Todd Poynor --- diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 836d57f55950..5a5fef4447e3 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c @@ -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), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 22e1196b0bc8..19778d7cb4b4 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -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,