linux/drivers/usb/dwc3
Felipe Balbi 45438a0cd9 usb: dwc3: gadget: simplify dwc3_ep_prev_trb()
We always need to decrement our index by at least
one. Simplify the implementation by using a
temporary local variable and making sure that we
will always decrement one extra if tmp == 0.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-08-22 10:45:37 +03:00
..
core.c usb: dwc3: core: cleanup IRQ resources 2016-06-21 10:53:22 +03:00
core.h usb: dwc3: gadget: keep track of allocated and queued reqs 2016-06-20 12:32:49 +03:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: gadget: improve gcmd trace 2016-06-20 12:32:41 +03:00
debugfs.c usb: dwc3: add DWC3_GUCTL1 reg for debug 2016-06-20 12:32:46 +03:00
dwc3-exynos.c usb: dwc3: exynos: Fix deferred probing storm. 2016-05-31 11:12:42 +03:00
dwc3-keystone.c usb: dwc3: keystone: drop dma_mask configuration 2016-04-06 16:36:01 +03:00
dwc3-of-simple.c usb: dwc3: fix missing platform_set_drvdata() in dwc3_of_simple_probe() 2016-08-11 15:09:45 +03:00
dwc3-omap.c usb: dwc3: omap: Pass VBUS and ID events transparently 2016-06-20 12:32:47 +03:00
dwc3-pci.c usb: dwc3: pci: add Intel Kabylake PCI ID 2016-08-10 14:15:58 +03:00
dwc3-st.c - Final patches fixing Reset API change 2016-07-01 15:17:16 -07:00
ep0.c usb: dwc3: remove trailing newline from dwc3_trace 2016-06-20 12:32:48 +03:00
gadget.c usb: dwc3: gadget: simplify dwc3_ep_prev_trb() 2016-08-22 10:45:37 +03:00
gadget.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
host.c usb: dwc3: host: Fix broken XHCI host 2016-07-01 08:59:44 -07:00
io.h usb: dwc3: gadget: add a pointer to endpoint registers 2016-06-20 12:32:35 +03:00
Kconfig usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
Makefile usb: dwc3: remove dwc3-qcom in favor of dwc3-of-simple 2015-12-15 09:12:41 -06:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: gadget: keep track of allocated and queued reqs 2016-06-20 12:32:49 +03:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00