kernel-fxtec-pro1x/include/linux/usb
Michal Nazarewicz e538dfdae8 usb: Provide usb_speed_string() function
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>
2011-09-18 01:29:04 -07:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h
c67x00.h
cdc.h
ch9.h usb: Provide usb_speed_string() function 2011-09-18 01:29:04 -07:00
ch11.h
composite.h usb: gadget: add SuperSpeed support to the Gadget Framework 2011-07-01 14:27:05 -07:00
ehci_def.h
functionfs.h
g_hid.h
g_printer.h
gadget.h usb: gadget: udc-core: add "new-style" registration interface 2011-07-01 14:31:13 -07:00
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 usb: gadget: m66592-udc: add function for external controller 2011-07-09 01:08:39 +03:00
midi.h
msm_hsusb.h
msm_hsusb_hw.h
musb.h
net2280.h
otg.h
quirks.h
r8a66597.h Merge branch 'for-next' of master.kernel.org:/pub/scm/linux/kernel/git/balbi/usb into usb-next 2011-07-08 15:30:55 -07:00
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