summaryrefslogtreecommitdiffstats
path: root/drivers/staging/usbip
diff options
context:
space:
mode:
authorShuah Khan2014-01-24 17:25:05 +0100
committerGreg Kroah-Hartman2014-02-07 19:55:41 +0100
commit09c8c8fbf01a828e43cc06b89a060d86ef3efbc3 (patch)
tree51533b716889bb9f7edcfcc1f8736bde0fa147e5 /drivers/staging/usbip
parentstaging: usbip: convert usbip-host driver to usb_device_driver (diff)
downloadkernel-qcow2-linux-09c8c8fbf01a828e43cc06b89a060d86ef3efbc3.tar.gz
kernel-qcow2-linux-09c8c8fbf01a828e43cc06b89a060d86ef3efbc3.tar.xz
kernel-qcow2-linux-09c8c8fbf01a828e43cc06b89a060d86ef3efbc3.zip
staging/usbip: simplify usbip_dump_usb_device() udev->speed handling
Change usbip_dump_usb_device() to use usb_speed_string() and remove the code that does switch on udev->speed and builds custom speed strings. Signed-off-by: Shuah Khan <shuah.kh@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r--drivers/staging/usbip/usbip_common.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c
index 96552e3a1bfb..4a2aab16b10c 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -99,26 +99,8 @@ static void usbip_dump_usb_device(struct usb_device *udev)
struct device *dev = &udev->dev;
int i;
- dev_dbg(dev, " devnum(%d) devpath(%s) ",
- udev->devnum, udev->devpath);
-
- switch (udev->speed) {
- case USB_SPEED_HIGH:
- pr_debug("SPD_HIGH ");
- break;
- case USB_SPEED_FULL:
- pr_debug("SPD_FULL ");
- break;
- case USB_SPEED_LOW:
- pr_debug("SPD_LOW ");
- break;
- case USB_SPEED_UNKNOWN:
- pr_debug("SPD_UNKNOWN ");
- break;
- default:
- pr_debug("SPD_ERROR ");
- break;
- }
+ dev_dbg(dev, " devnum(%d) devpath(%s) usb speed(%s)",
+ udev->devnum, udev->devpath, usb_speed_string(udev->speed));
pr_debug("tt %p, ttport %d\n", udev->tt, udev->ttport);