]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sl811-hcd: use USB_DT_HUB
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 28 Mar 2015 22:26:55 +0000 (01:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 17:03:17 +0000 (19:03 +0200)
Fix  using the  bare number to set the 'bDescriptorType' field of the Hub
Descriptor while the value  is #define'd in <linux/usb/ch11.h>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/sl811-hcd.c

index f1d5c5a117057fd121b762503ea8c3ed13342ca8..53e4fb75b04c653422ceb00a98e2fdbd28ffecc5 100644 (file)
@@ -1091,7 +1091,7 @@ sl811h_hub_descriptor (
 ) {
        u16             temp = 0;
 
-       desc->bDescriptorType = 0x29;
+       desc->bDescriptorType = USB_DT_HUB;
        desc->bHubContrCurrent = 0;
 
        desc->bNbrPorts = 1;