projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[deliverable/linux.git]
/
drivers
/
usb
/
gadget
/
ci13xxx_udc.c
diff --git
a/drivers/usb/gadget/ci13xxx_udc.c
b/drivers/usb/gadget/ci13xxx_udc.c
index 1265a8502ea0fe90348bdcdfa41b2f4df337c02d..83428f56253bd5283a8962448fa8cd7b899aee96 100644
(file)
--- a/
drivers/usb/gadget/ci13xxx_udc.c
+++ b/
drivers/usb/gadget/ci13xxx_udc.c
@@
-2101,7
+2101,7
@@
static int ep_enable(struct usb_ep *ep,
mEp->num = usb_endpoint_num(desc);
mEp->type = usb_endpoint_type(desc);
- mEp->ep.maxpacket =
__constant_le16_to_cpu(desc->wMaxPacketSize
);
+ mEp->ep.maxpacket =
usb_endpoint_maxp(desc
);
dbg_event(_usb_addr(mEp), "ENABLE", 0);
This page took
0.02413 seconds
and
5
git commands to generate.