commit | 4faf75504a7db790483aa419d8f61e58cec4934c | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Apr 05 13:14:31 2016 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Apr 19 11:11:51 2016 +0300 |
tree | f1993e47eaf5c429516465c043c31bbb2884d382 | |
parent | ef966b9d33533b0bf01fb8c4d586ac3b20a3bdb5 [diff] |
usb: dwc3: gadget: move % operation to increment helpers By moving our % DWC3_NUM_TRB operation to the increment helpers, the rest of the driver can be simplified. It's also a good practice to make sure we will have a single place dealing with details about how to increment our enqueue and dequeue pointers. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>