linux_old1/drivers/usb/gadget/udc/aspeed-vhub
Chunfeng Yun 4d537f37e0 usb: introduce usb_ep_type_string() function
In some places, the code prints a human-readable USB endpoint
transfer type (e.g. "bulk"). This involves a switch statement
sometimes wrapped around in ({ ... }) block leading to code
repetition.
To make this scenario easier, here introduces usb_ep_type_string()
function, which returns a human-readable name of provided
endpoint type.
It also changes a few places switch was used to use this
new function.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-26 16:45:03 +09:00
..
Kconfig
Makefile
core.c
dev.c usb: gadget: aspeed-vhub: constify usb_gadget_ops structure 2018-11-26 09:06:31 +02:00
ep0.c usb: gadget: aspeed: Workaround memory ordering issue 2018-07-17 10:12:51 +03:00
epn.c usb: introduce usb_ep_type_string() function 2019-03-26 16:45:03 +09:00
hub.c usb: gadget: fix various indentation issues 2019-02-07 13:14:51 +02:00
vhub.h usb: gadget: aspeed: Workaround memory ordering issue 2018-07-17 10:12:51 +03:00