diff options
author | Felipe Balbi <balbi@ti.com> | 2012-06-06 05:04:13 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-25 07:00:45 -0400 |
commit | b4996a8631e80a2aaddb5c487ff6b9ad37315f70 (patch) | |
tree | 4001dfad7781a59cab6f11f947343dbbc6b36299 /drivers/usb/dwc3/ep0.c | |
parent | b511e5e76bf488cd3eec1048483a3898393a4dca (diff) |
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, | |||
113 | } | 113 | } |
114 | 114 | ||
115 | dep->flags |= DWC3_EP_BUSY; | 115 | dep->flags |= DWC3_EP_BUSY; |
116 | dep->res_trans_idx = dwc3_gadget_ep_get_transfer_index(dwc, | 116 | dep->resource_index = dwc3_gadget_ep_get_transfer_index(dwc, |
117 | dep->number); | 117 | dep->number); |
118 | 118 | ||
119 | dwc->ep0_next_event = DWC3_EP0_COMPLETE; | 119 | dwc->ep0_next_event = DWC3_EP0_COMPLETE; |
@@ -757,7 +757,7 @@ static void dwc3_ep0_xfer_complete(struct dwc3 *dwc, | |||
757 | struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; | 757 | struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; |
758 | 758 | ||
759 | dep->flags &= ~DWC3_EP_BUSY; | 759 | dep->flags &= ~DWC3_EP_BUSY; |
760 | dep->res_trans_idx = 0; | 760 | dep->resource_index = 0; |
761 | dwc->setup_packet_pending = false; | 761 | dwc->setup_packet_pending = false; |
762 | 762 | ||
763 | switch (dwc->ep0state) { | 763 | switch (dwc->ep0state) { |