From: Todd Poynor Date: Fri, 13 Jul 2012 20:30:04 +0000 (-0700) Subject: power: power_supply: add POWER_SUPPLY_PROP_USB_OTG X-Git-Tag: firefly_0821_release~4090^2~711 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=142b81fdacc8627969f9aa6147b3b96c1f1e05f0;p=firefly-linux-kernel-4.4.55.git power: power_supply: add POWER_SUPPLY_PROP_USB_OTG Change-Id: Idfc6ef2e37d62aad6f26cc8eafa53db642cd352b Signed-off-by: Todd Poynor --- diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index 3900e3414926..836d57f55950 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c @@ -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), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index d121a679142f..22e1196b0bc8 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -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,