diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:36:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:16 -0400 |
commit | a5dd03950aa8be19b61a802cea8e9edde462d4ea (patch) | |
tree | 8a7cdf4921c8a0f69bb1de3fe063d4eedac980b0 /drivers/usb | |
parent | 2569ffd58b03d900f53b073054df4dc45ca67873 (diff) |
dwc2: hcd: use USB_DT_HUB
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc2/hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 559b55e5debb..6f4acfa9252e 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c | |||
@@ -1616,7 +1616,7 @@ static int dwc2_hcd_hub_control(struct dwc2_hsotg *hsotg, u16 typereq, | |||
1616 | dev_dbg(hsotg->dev, "GetHubDescriptor\n"); | 1616 | dev_dbg(hsotg->dev, "GetHubDescriptor\n"); |
1617 | hub_desc = (struct usb_hub_descriptor *)buf; | 1617 | hub_desc = (struct usb_hub_descriptor *)buf; |
1618 | hub_desc->bDescLength = 9; | 1618 | hub_desc->bDescLength = 9; |
1619 | hub_desc->bDescriptorType = 0x29; | 1619 | hub_desc->bDescriptorType = USB_DT_HUB; |
1620 | hub_desc->bNbrPorts = 1; | 1620 | hub_desc->bNbrPorts = 1; |
1621 | hub_desc->wHubCharacteristics = | 1621 | hub_desc->wHubCharacteristics = |
1622 | cpu_to_le16(HUB_CHAR_COMMON_LPSM | | 1622 | cpu_to_le16(HUB_CHAR_COMMON_LPSM | |