usb: dwc3: gadget: add trb enqueue/dequeue helpers
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 5 Apr 2016 10:09:51 +0000 (13:09 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Apr 2016 08:11:46 +0000 (11:11 +0300)
commitef966b9d33533b0bf01fb8c4d586ac3b20a3bdb5
tree75da78b3e3cf384b6aa872cb0b006826ed4d9d02
parent70fdb273db37196e9e5d292d5778a99fededb32f
usb: dwc3: gadget: add trb enqueue/dequeue helpers

Add three little helpers which will aid in making
the code slightly easier to read. One helper
increments enqueue pointer, another increments
dequeue pointer and the last one tests if we're
dealing with the last TRB.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c