summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-07-10 03:16:30 +0200
committerMarek Vasut <marex@denx.de>2013-07-29 23:01:31 +0200
commit2ea4b44832eee9a85167bd2a54a7b603618d80b0 (patch)
treec976a16d532e91bf39e4f2dee510efccb5dc1855 /include/usb
parent532d846f891f31e2582428d7572b98103e3ec268 (diff)
usb: mv_udc: Clean up the EP initialization
Move the constant values that are programmed into mv_ep.ep into separate static const structure so they can be memcpy()'d when the initialization happens. Moveover, we only every init NUM_ENDPOINTS, not 2 * NUM_ENDPOINTS, so fix this bug as well. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Lei Wen <leiwen@marvell.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/mv_udc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb/mv_udc.h b/include/usb/mv_udc.h
index f92ca49858f..ffddb7599d1 100644
--- a/include/usb/mv_udc.h
+++ b/include/usb/mv_udc.h
@@ -74,7 +74,7 @@ struct mv_drv {
struct usb_gadget gadget;
struct usb_gadget_driver *driver;
struct mv_udc *udc;
- struct mv_ep ep[2 * NUM_ENDPOINTS];
+ struct mv_ep ep[NUM_ENDPOINTS];
};
struct ept_queue_head {