<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/usb/usb-common.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-09-18T08:29:04Z</updated>
<entry>
<title>usb: Provide usb_speed_string() function</title>
<updated>2011-09-18T08:29:04Z</updated>
<author>
<name>Michal Nazarewicz</name>
</author>
<published>2011-08-30T15:11:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e538dfdae85244fd2c4231725d82cc1f1bc4942c'/>
<id>urn:sha1:e538dfdae85244fd2c4231725d82cc1f1bc4942c</id>
<content type='text'>
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 &lt;mina86@mina86.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
</entry>
</feed>
