]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
fotg210-hcd: use USB_DT_HUB
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 28 Mar 2015 22:06:21 +0000 (01:06 +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/fotg210-hcd.c

index 475b21fd373baa6102be4b102b856098857dfdb8..af08ff12954d45b109fe28d908a9db351290b806 100644 (file)
@@ -1509,7 +1509,7 @@ fotg210_hub_descriptor(
        int             ports = HCS_N_PORTS(fotg210->hcs_params);
        u16             temp;
 
-       desc->bDescriptorType = 0x29;
+       desc->bDescriptorType = USB_DT_HUB;
        desc->bPwrOn2PwrGood = 10;      /* fotg210 1.0, 2.3.9 says 20ms max */
        desc->bHubContrCurrent = 0;