Home
last modified time | relevance | path

Searched hist:"4 d537f37e0d39f64687be71087dca607ee507f5a" (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.cdiff 4d537f37e0d39f64687be71087dca607ee507f5a Wed Mar 20 21:27:56 CDT 2019 Chunfeng Yun <chunfeng.yun@mediatek.com> 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>
/openbmc/linux/drivers/usb/common/
H A Dcommon.cdiff 4d537f37e0d39f64687be71087dca607ee507f5a Wed Mar 20 21:27:56 CDT 2019 Chunfeng Yun <chunfeng.yun@mediatek.com> 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>
/openbmc/linux/include/linux/usb/
H A Dch9.hdiff 4d537f37e0d39f64687be71087dca607ee507f5a Wed Mar 20 21:27:56 CDT 2019 Chunfeng Yun <chunfeng.yun@mediatek.com> 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>
/openbmc/linux/drivers/usb/gadget/udc/
H A Ddummy_hcd.cdiff 4d537f37e0d39f64687be71087dca607ee507f5a Wed Mar 20 21:27:56 CDT 2019 Chunfeng Yun <chunfeng.yun@mediatek.com> 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>
/openbmc/linux/drivers/usb/core/
H A Dhcd.cdiff 4d537f37e0d39f64687be71087dca607ee507f5a Wed Mar 20 21:27:56 CDT 2019 Chunfeng Yun <chunfeng.yun@mediatek.com> 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>