UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitdded20cf15f3711b4d41139dadff6f52d523a4d8
tree54dd86fa7f60b62250a47fc53aa603e438ce67f6
parent99b9c25ddc21822d652e218b57c9dcdb75309b4d
UPSTREAM: 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.

Change-Id: I98da6b44c0a348978f5e03a374af5b951bb2adc5
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit ef966b9d33533b0bf01fb8c4d586ac3b20a3bdb5)
drivers/usb/dwc3/gadget.c