linux_dsm_epyc7002/drivers/usb/dwc3
Andy Shevchenko 46b780d46b usb: dwc3: gadget: increase readability of dwc3_gadget_init_endpoints()
The commit 47d3946ea2

	usb: dwc3: refactor gadget endpoint count calculation

refactored dwc3_gadget_init_endpoints() and in particular changed in or
out endpoint numbering to be through. It's not always convenient and
makes code a slightly harder to read.

Introduce a new temporary variable to make it easier to understand what
is going on inside the function.

While doing that, rename local variables as follows:
	u8 num	-> u8 total
	int num -> int kbytes

Replace implicit direction check via epnum with explicit use of
direction variable.

While here, replace %d to %u when compounding endpoint name since we are
using unsigned type.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-06-13 13:21:08 +03:00
..
core.c usb: dwc3: core: program PHY for proper DRD modes 2017-06-13 13:21:06 +03:00
core.h usb: dwc3: update documentation 2017-06-02 11:22:27 +03:00
debug.h usb: dwc3: trace: decode ctrl request 2017-06-02 11:22:29 +03:00
debugfs.c usb: dwc3: debugfs: slightly improve output of trb_ring 2017-06-02 11:22:28 +03:00
drd.c usb: dwc3: Add dual-role support 2017-04-11 10:58:31 +03:00
dwc3-exynos.c usb: dwc3: exynos: change goto labels to meaningful names 2017-04-11 10:58:19 +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: of-simple: add compatible for Cavium 2016-09-13 09:28:59 +03:00
dwc3-omap.c usb: dwc3: use BIT() macro where possible 2017-04-11 10:58:23 +03:00
dwc3-pci.c usb: dwc3: pci: Switch to devm_acpi_dev_add_driver_gpios() 2017-03-23 13:39:13 +01:00
dwc3-st.c usb: dwc3: replace %p with %pK 2017-06-02 11:22:10 +03:00
ep0.c usb: dwc3: ep0: make sure wValue is 0 on GetStatus() 2017-06-13 13:21:05 +03:00
gadget.c usb: dwc3: gadget: increase readability of dwc3_gadget_init_endpoints() 2017-06-13 13:21:08 +03:00
gadget.h usb: dwc3: update documentation 2017-06-02 11:22:27 +03:00
host.c usb: dwc3: host: pass quirk-broken-port-ped property for known broken revisions 2017-01-26 11:17:37 +02:00
io.h usb: dwc3: trace: add a proper tracepoint for reg accessors 2016-11-03 10:38:30 +02:00
Kconfig usb: changes for v4.12 2017-04-11 16:47:26 +02:00
Makefile usb: dwc3: Add dual-role support 2017-04-11 10:58:31 +03:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: trace: decode ctrl request 2017-06-02 11:22:29 +03:00
ulpi.c usb: dwc3: ulpi: conditionally resume ULPI PHY 2017-06-13 13:21:05 +03:00