fhci-hub: use USB_DT_HUB
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 28 Mar 2015 22:04:50 +0000 (01:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 17:03:19 +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/fhci-hub.c

index 70116a65262cc70c829e7d0cd7d2e03e35da59fc..3bacdd7befe9b0c55dafa1e1d799ecb1f8df6535 100644 (file)
@@ -30,7 +30,7 @@
 /* virtual root hub specific descriptor */
 static u8 root_hub_des[] = {
        0x09, /* blength */
-       0x29, /* bDescriptorType;hub-descriptor */
+       USB_DT_HUB, /* bDescriptorType;hub-descriptor */
        0x01, /* bNbrPorts */
        HUB_CHAR_INDV_PORT_LPSM | HUB_CHAR_NO_OCPM, /* wHubCharacteristics */
        0x00, /* per-port power, no overcurrent */