power: power_supply: add POWER_SUPPLY_PROP_USB_OTG
authorTodd Poynor <toddpoynor@google.com>
Fri, 13 Jul 2012 20:30:04 +0000 (13:30 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:33 +0000 (13:53 -0800)
Change-Id: Idfc6ef2e37d62aad6f26cc8eafa53db642cd352b
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 3eadb4a29a46e828178096dc48b05cccd01527c2..9cd03c36a65c1315f8a0bfaf79ea07fb6ea40aa2 100644 (file)
@@ -199,6 +199,7 @@ static struct device_attribute power_supply_attrs[] = {
        POWER_SUPPLY_ATTR(calibrate),
        /* Local extensions */
        POWER_SUPPLY_ATTR(usb_hc),
+       POWER_SUPPLY_ATTR(usb_otg),
        /* Properties of type `const char *' */
        POWER_SUPPLY_ATTR(model_name),
        POWER_SUPPLY_ATTR(manufacturer),
index d29264c335fb3bf42a990aad2467d95f64892959..995996f5344f7c6a7a4ef3328c7c8772a1cfd75f 100644 (file)
@@ -150,6 +150,7 @@ enum power_supply_property {
        POWER_SUPPLY_PROP_CALIBRATE,
        /* Local extensions */
        POWER_SUPPLY_PROP_USB_HC,
+       POWER_SUPPLY_PROP_USB_OTG,
        /* Properties of type `const char *' */
        POWER_SUPPLY_PROP_MODEL_NAME,
        POWER_SUPPLY_PROP_MANUFACTURER,