usb: dwc3: gadget: pass dep as argument to endpoint command
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 12 Apr 2016 13:42:43 +0000 (16:42 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:31 +0000 (12:32 +0300)
commit2cd4718d0bbe1906fcf517f0b254fbd7c072383a
tree47ae0713889b671bd49e7192a85f247393ac3569
parent4e99472bc10bda9906526d725ff6d5f27b4ddca1
usb: dwc3: gadget: pass dep as argument to endpoint command

In all call sites of dwc3_send_gadget_ep_cmd() we
already had a valid dep pointer, so instead of
passing dwc and dep->number, which would be used to
fetch the same pointer we already had, just pass dep
directly.

In other words, we're changing:

struct dwc3_ep *dep = dwc[dep->number];

to just passing struct dwc3_ep *dep as argument.

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