diff options
author | Felipe Balbi <balbi@ti.com> | 2012-06-06 12:04:13 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-25 14:00:45 +0300 |
commit | b4996a8631e80a2aaddb5c487ff6b9ad37315f70 (patch) | |
tree | 4001dfad7781a59cab6f11f947343dbbc6b36299 /drivers/usb/dwc3/ep0.c | |
parent | b511e5e76bf488cd3eec1048483a3898393a4dca (diff) | |
download | linux-b4996a8631e80a2aaddb5c487ff6b9ad37315f70.tar.bz2 |
usb: dwc3: rename res_trans_idx to resource_index
resource_index is more human readable. No
functional changes.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/ep0.c')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 90eb1ba65454..9a8f26cef0a1 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -113,7 +113,7 @@ static int dwc3_ep0_start_trans(struct dwc3 *dwc, u8 epnum, dma_addr_t buf_dma, } dep->flags |= DWC3_EP_BUSY; - dep->res_trans_idx = dwc3_gadget_ep_get_transfer_index(dwc, + dep->resource_index = dwc3_gadget_ep_get_transfer_index(dwc, dep->number); dwc->ep0_next_event = DWC3_EP0_COMPLETE; @@ -757,7 +757,7 @@ static void dwc3_ep0_xfer_complete(struct dwc3 *dwc, struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; dep->flags &= ~DWC3_EP_BUSY; - dep->res_trans_idx = 0; + dep->resource_index = 0; dwc->setup_packet_pending = false; switch (dwc->ep0state) { |