Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151326
b: refs/heads/master
c: 81c8d8d
h: refs/heads/master
v: v3
  • Loading branch information
Matthias Kaehlcke authored and Greg Kroah-Hartman committed Jun 16, 2009
1 parent 8155558 commit 7e5161d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 71de6b63f15924e5aed2de0b975efc5117c0ca75
refs/heads/master: 81c8d8d28d6f2750acd4e41de34aefeb9404431c
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ static int at91_ep_enable(struct usb_ep *_ep,
return -ESHUTDOWN;
}

tmp = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
tmp = usb_endpoint_type(desc);
switch (tmp) {
case USB_ENDPOINT_XFER_CONTROL:
DBG("only one control endpoint\n");
Expand Down Expand Up @@ -517,7 +517,7 @@ static int at91_ep_enable(struct usb_ep *_ep,
local_irq_save(flags);

/* initialize endpoint to match this descriptor */
ep->is_in = (desc->bEndpointAddress & USB_DIR_IN) != 0;
ep->is_in = usb_endpoint_dir_in(desc);
ep->is_iso = (tmp == USB_ENDPOINT_XFER_ISOC);
ep->stopped = 0;
if (ep->is_in)
Expand Down

0 comments on commit 7e5161d

Please sign in to comment.