diff options
author | Marek Vasut <marex@denx.de> | 2013-07-10 03:16:30 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-07-29 23:01:31 +0200 |
commit | 2ea4b44832eee9a85167bd2a54a7b603618d80b0 (patch) | |
tree | c976a16d532e91bf39e4f2dee510efccb5dc1855 /include | |
parent | 532d846f891f31e2582428d7572b98103e3ec268 (diff) | |
download | u-boot-imx-2ea4b44832eee9a85167bd2a54a7b603618d80b0.zip u-boot-imx-2ea4b44832eee9a85167bd2a54a7b603618d80b0.tar.gz u-boot-imx-2ea4b44832eee9a85167bd2a54a7b603618d80b0.tar.bz2 |
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')
-rw-r--r-- | include/usb/mv_udc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb/mv_udc.h b/include/usb/mv_udc.h index f92ca49..ffddb75 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 { |