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

index 3900e34149262b423a977a93c1e94ea451a2930d..836d57f55950a321913123c065ea2cee03b92fda 100644 (file)
@@ -191,6 +191,7 @@ static struct device_attribute power_supply_attrs[] = {
        POWER_SUPPLY_ATTR(scope),
        /* 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 d121a679142f6b8ba30e637f54aebe1caa8c774a..22e1196b0bc8e88460bbbb55082e313ecdf7ed7c 100644 (file)
@@ -142,6 +142,7 @@ enum power_supply_property {
        POWER_SUPPLY_PROP_SCOPE,
        /* 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,