]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: simplify dwc3_prepare_one_trb()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 5 Jan 2017 12:32:02 +0000 (14:32 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:12 +0000 (11:04 +0200)
commit73c886e6c057fb8962e0efc3b5474e912059aa3c
tree2ed0600705349580d8cafa20019b07e87c05aa96
parent80c54d0823f7a4e777fe1298c4736a68a2b52404
usb: dwc3: gadget: simplify dwc3_prepare_one_trb()

We are already passing struct dwc3_request * to dwc3_prepare_one_trb(),
because of that there's no need to extract dma address and length in the
caller. We can let dwc3_prepare_one_trb() itself handle that part.

This simplifies the prototype of the function by removing two arguments.

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