diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-03-14 10:01:31 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-14 08:24:38 +0200 |
commit | aa3342c8bb618ae25beccddacc3efb415c3a987b (patch) | |
tree | 1f82c5837d77b7f5d6de999069e5205280605a6f /drivers/usb/dwc3/gadget.h | |
parent | usb: dwc3: increase maximum number of TRBs per endpoint (diff) | |
download | linux-aa3342c8bb618ae25beccddacc3efb415c3a987b.tar.xz linux-aa3342c8bb618ae25beccddacc3efb415c3a987b.zip |
usb: dwc3: better name for our request management lists
request_list and req_queued were, well, weird naming
choices.
Let's give those better names and call them,
respectively, pending_list and started_list. These
new names better reflect what these lists are
supposed to do.
While at that also rename req->queued to req->started.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r-- | drivers/usb/dwc3/gadget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h index 18ae3eaa8b6f..f21c0fccbebd 100644 --- a/drivers/usb/dwc3/gadget.h +++ b/drivers/usb/dwc3/gadget.h @@ -68,12 +68,12 @@ static inline struct dwc3_request *next_request(struct list_head *list) return list_first_entry(list, struct dwc3_request, list); } -static inline void dwc3_gadget_move_request_queued(struct dwc3_request *req) +static inline void dwc3_gadget_move_started_request(struct dwc3_request *req) { struct dwc3_ep *dep = req->dep; - req->queued = true; - list_move_tail(&req->list, &dep->req_queued); + req->started = true; + list_move_tail(&req->list, &dep->started_list); } void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req, |