summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.h
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-03-14 11:01:31 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-14 09:24:38 +0300
commitaa3342c8bb618ae25beccddacc3efb415c3a987b (patch)
tree1f82c5837d77b7f5d6de999069e5205280605a6f /drivers/usb/dwc3/gadget.h
parent8495036e986bdc7e82523d47097e7833d2782ff9 (diff)
downloadlinux-stable-aa3342c8bb618ae25beccddacc3efb415c3a987b.tar.gz
linux-stable-aa3342c8bb618ae25beccddacc3efb415c3a987b.tar.bz2
linux-stable-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.h6
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,