diff options
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_udc.c')
-rw-r--r-- | drivers/usb/gadget/ci13xxx_udc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c index 38e531ecae4d..c7cb87a6fee2 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/gadget/ci13xxx_udc.c | |||
@@ -1977,9 +1977,9 @@ static int ep_enable(struct usb_ep *ep, | |||
1977 | if (!list_empty(&mEp->qh[mEp->dir].queue)) | 1977 | if (!list_empty(&mEp->qh[mEp->dir].queue)) |
1978 | warn("enabling a non-empty endpoint!"); | 1978 | warn("enabling a non-empty endpoint!"); |
1979 | 1979 | ||
1980 | mEp->dir = (desc->bEndpointAddress & USB_ENDPOINT_DIR_MASK) ? TX : RX; | 1980 | mEp->dir = usb_endpoint_dir_in(desc) ? TX : RX; |
1981 | mEp->num = desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; | 1981 | mEp->num = usb_endpoint_num(desc); |
1982 | mEp->type = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK; | 1982 | mEp->type = usb_endpoint_type(desc); |
1983 | 1983 | ||
1984 | mEp->ep.maxpacket = __constant_le16_to_cpu(desc->wMaxPacketSize); | 1984 | mEp->ep.maxpacket = __constant_le16_to_cpu(desc->wMaxPacketSize); |
1985 | 1985 | ||