]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc3: gadget: move % operation to increment helpers
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 5 Apr 2016 10:14:31 +0000 (13:14 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Apr 2016 08:11:51 +0000 (11:11 +0300)
commit4faf75504a7db790483aa419d8f61e58cec4934c
treef1993e47eaf5c429516465c043c31bbb2884d382
parentef966b9d33533b0bf01fb8c4d586ac3b20a3bdb5
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>
drivers/usb/dwc3/gadget.c