aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2017-06-12 15:11:25 +0300
committerFelipe Balbi <[email protected]>2017-06-13 13:21:08 +0300
commit46b780d46bccdc75b63a98b2a9cca5a4e0ff2cec (patch)
tree7eb1e4ff6fab053b1fc22c36d54d9b637bc01766 /include/linux/debugobjects.h
parent8e55d30322c6a0ef746c256a1beda9c73ecb27a6 (diff)
usb: dwc3: gadget: increase readability of dwc3_gadget_init_endpoints()
The commit 47d3946ea220 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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions