power_supply: Add custom property for USB High Current mode
authorTodd Poynor <toddpoynor@google.com>
Tue, 3 Jul 2012 22:41:20 +0000 (15:41 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:51 +0000 (13:40 -0700)
For smb347.

Change-Id: I3323469072e1ee5085d61af8a89612b06b91f94a
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h

index 29178f78d73cfb79868923bfee7ffbe30b393e1b..ccbb28049b80b2e6767dd56826cfb8770d210234 100644 (file)
@@ -193,6 +193,8 @@ static struct device_attribute power_supply_attrs[] = {
        POWER_SUPPLY_ATTR(model_name),
        POWER_SUPPLY_ATTR(manufacturer),
        POWER_SUPPLY_ATTR(serial_number),
+       /* Local extensions */
+       POWER_SUPPLY_ATTR(usb_hc),
 };
 
 static struct attribute *
index de207ebb917041e3cf0fd2f1fd1bacc36590c543..1b82404da86dea6055f437ed32a937b0208492c3 100644 (file)
@@ -144,6 +144,8 @@ enum power_supply_property {
        POWER_SUPPLY_PROP_MODEL_NAME,
        POWER_SUPPLY_PROP_MANUFACTURER,
        POWER_SUPPLY_PROP_SERIAL_NUMBER,
+       /* Local extensions */
+       POWER_SUPPLY_PROP_USB_HC,
 };
 
 enum power_supply_type {