e538dfdae8
In a few places in the kernel, the code prints a human-readable USB device speed (eg. "high speed"). This involves a switch statement sometimes wrapped around in ({ ... }) block leading to code repetition. To mitigate this issue, this commit introduces usb_speed_string() function, which returns a human-readable name of provided speed. It also changes a few places switch was used to use this new function. This changes a bit the way the speed is printed in few instances at the same time standardising it. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
||
---|---|---|
.. | ||
association.h | ||
atmel_usba_udc.h | ||
audio-v2.h | ||
audio.h | ||
c67x00.h | ||
cdc.h | ||
ch9.h | ||
ch11.h | ||
composite.h | ||
ehci_def.h | ||
functionfs.h | ||
g_hid.h | ||
g_printer.h | ||
gadget.h | ||
gadgetfs.h | ||
gpio_vbus.h | ||
hcd.h | ||
input.h | ||
intel_mid_otg.h | ||
iowarrior.h | ||
irda.h | ||
isp116x.h | ||
isp1362.h | ||
isp1760.h | ||
Kbuild | ||
langwell_otg.h | ||
langwell_udc.h | ||
m66592.h | ||
midi.h | ||
msm_hsusb.h | ||
msm_hsusb_hw.h | ||
musb.h | ||
net2280.h | ||
otg.h | ||
quirks.h | ||
r8a66597.h | ||
renesas_usbhs.h | ||
rndis_host.h | ||
serial.h | ||
sl811.h | ||
storage.h | ||
tmc.h | ||
ulpi.h | ||
usbnet.h | ||
video.h | ||
wusb-wa.h | ||
wusb.h |