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:
58ae8e0
)
usb: gadget: r8a66597-udc: set value for common is_selfpowered
author
Peter Chen
<peter.chen@freescale.com>
Wed, 28 Jan 2015 08:32:34 +0000
(16:32 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 29 Jan 2015 16:35:13 +0000
(10:35 -0600)
Set value for common is_selfpowered.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/r8a66597-udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/r8a66597-udc.c
b/drivers/usb/gadget/udc/r8a66597-udc.c
index 06870da0b988dd41563f8d921228e722ff937dde..2495fe9c95c5855f0c18be45d6f58deb0cf21a45 100644
(file)
--- a/
drivers/usb/gadget/udc/r8a66597-udc.c
+++ b/
drivers/usb/gadget/udc/r8a66597-udc.c
@@
-1803,6
+1803,7
@@
static int r8a66597_set_selfpowered(struct usb_gadget *gadget, int is_self)
{
struct r8a66597 *r8a66597 = gadget_to_r8a66597(gadget);
+ gadget->is_selfpowered = (is_self != 0);
if (is_self)
r8a66597->device_status |= 1 << USB_DEVICE_SELF_POWERED;
else