提交 3f6dd4fe 编写于 作者: P Peter Chen 提交者: Felipe Balbi

usb: udc-core: add is_selfpowered sys entry

The user can read it through sys entry.
Signed-off-by: NPeter Chen <peter.chen@freescale.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 dadac986
...@@ -564,6 +564,7 @@ static USB_UDC_ATTR(is_a_peripheral); ...@@ -564,6 +564,7 @@ static USB_UDC_ATTR(is_a_peripheral);
static USB_UDC_ATTR(b_hnp_enable); static USB_UDC_ATTR(b_hnp_enable);
static USB_UDC_ATTR(a_hnp_support); static USB_UDC_ATTR(a_hnp_support);
static USB_UDC_ATTR(a_alt_hnp_support); static USB_UDC_ATTR(a_alt_hnp_support);
static USB_UDC_ATTR(is_selfpowered);
static struct attribute *usb_udc_attrs[] = { static struct attribute *usb_udc_attrs[] = {
&dev_attr_srp.attr, &dev_attr_srp.attr,
...@@ -577,6 +578,7 @@ static struct attribute *usb_udc_attrs[] = { ...@@ -577,6 +578,7 @@ static struct attribute *usb_udc_attrs[] = {
&dev_attr_b_hnp_enable.attr, &dev_attr_b_hnp_enable.attr,
&dev_attr_a_hnp_support.attr, &dev_attr_a_hnp_support.attr,
&dev_attr_a_alt_hnp_support.attr, &dev_attr_a_alt_hnp_support.attr,
&dev_attr_is_selfpowered.attr,
NULL, NULL,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册