usb: gadget: Complete fsl qe/udc driver conversion
commit ec39e2ae
(usb: gadget: Update fsl_qe_udc to use
usb_endpoint_descriptor inside the struct usb_ep) did
not completely convert the fsl gadget drivers to use
the desc in usb_ep as described in commit messages.
Fix the macros that were still referencing the old
pointer.
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Cc: Ido Shayevitz <idos@codeaurora.org>
[ balbi@ti.com : brush up commit log a bit ]
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
08f75bf14f
commit
2347fc4405
|
@ -153,10 +153,10 @@ struct usb_ep_para{
|
||||||
#define USB_BUSMODE_DTB 0x02
|
#define USB_BUSMODE_DTB 0x02
|
||||||
|
|
||||||
/* Endpoint basic handle */
|
/* Endpoint basic handle */
|
||||||
#define ep_index(EP) ((EP)->desc->bEndpointAddress & 0xF)
|
#define ep_index(EP) ((EP)->ep.desc->bEndpointAddress & 0xF)
|
||||||
#define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
#define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
||||||
#define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
|
#define ep_is_in(EP) ((ep_index(EP) == 0) ? (EP->udc->ep0_dir == \
|
||||||
USB_DIR_IN) : ((EP)->desc->bEndpointAddress \
|
USB_DIR_IN) : ((EP)->ep.desc->bEndpointAddress \
|
||||||
& USB_DIR_IN) == USB_DIR_IN)
|
& USB_DIR_IN) == USB_DIR_IN)
|
||||||
|
|
||||||
/* ep0 transfer state */
|
/* ep0 transfer state */
|
||||||
|
|
Loading…
Reference in a new issue