projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dadac98
)
usb: udc-core: add is_selfpowered sys entry
author
Peter Chen
<
[email protected]
>
Wed, 28 Jan 2015 08:32:42 +0000
(16:32 +0800)
committer
Felipe Balbi
<
[email protected]
>
Thu, 29 Jan 2015 16:35:48 +0000
(10:35 -0600)
The user can read it through sys entry.
Signed-off-by: Peter Chen <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/gadget/udc/udc-core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/udc-core.c
b/drivers/usb/gadget/udc/udc-core.c
index e31d574d8860edc21917917b0b667833f67d84e3..5a81cb086b99353ef7d8d3e12f8cfdbff1eb5a45 100644
(file)
--- a/
drivers/usb/gadget/udc/udc-core.c
+++ b/
drivers/usb/gadget/udc/udc-core.c
@@
-564,6
+564,7
@@
static USB_UDC_ATTR(is_a_peripheral);
static USB_UDC_ATTR(b_hnp_enable);
static USB_UDC_ATTR(a_hnp_support);
static USB_UDC_ATTR(a_alt_hnp_support);
+static USB_UDC_ATTR(is_selfpowered);
static struct attribute *usb_udc_attrs[] = {
&dev_attr_srp.attr,
@@
-577,6
+578,7
@@
static struct attribute *usb_udc_attrs[] = {
&dev_attr_b_hnp_enable.attr,
&dev_attr_a_hnp_support.attr,
&dev_attr_a_alt_hnp_support.attr,
+ &dev_attr_is_selfpowered.attr,
NULL,
};