aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-07-12 12:10:59 -0400
committerFelipe Balbi <balbi@ti.com>2013-07-29 06:56:55 -0400
commit9aa62ae4292a2450634345d79a7fa1461bf7b39c (patch)
treed5bd958b58b6e7b824e771da48f54f62a984b761 /drivers/usb/dwc3
parentff62d6b6727360ae73382213bc1ebac6cf5160d7 (diff)
usb: dwc3: gadget: move direction setting up
no functional changes, just grouping dep initialization. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index c8d47c12ce33..f5efa03972bc 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -1642,13 +1642,13 @@ static int dwc3_gadget_init_hw_endpoints(struct dwc3 *dwc,
1642 1642
1643 dep->dwc = dwc; 1643 dep->dwc = dwc;
1644 dep->number = epnum; 1644 dep->number = epnum;
1645 dep->direction = !!direction;
1645 dwc->eps[epnum] = dep; 1646 dwc->eps[epnum] = dep;
1646 1647
1647 snprintf(dep->name, sizeof(dep->name), "ep%d%s", epnum >> 1, 1648 snprintf(dep->name, sizeof(dep->name), "ep%d%s", epnum >> 1,
1648 (epnum & 1) ? "in" : "out"); 1649 (epnum & 1) ? "in" : "out");
1649 1650
1650 dep->endpoint.name = dep->name; 1651 dep->endpoint.name = dep->name;
1651 dep->direction = (epnum & 1);
1652 1652
1653 if (epnum == 0 || epnum == 1) { 1653 if (epnum == 0 || epnum == 1) {
1654 dep->endpoint.maxpacket = 512; 1654 dep->endpoint.maxpacket = 512;