diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 23:36:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 19:03:16 +0200 |
commit | a5dd03950aa8be19b61a802cea8e9edde462d4ea (patch) | |
tree | 8a7cdf4921c8a0f69bb1de3fe063d4eedac980b0 | |
parent | dummy_hcd: use USB_DT[_SS]_HUB (diff) | |
download | linux-a5dd03950aa8be19b61a802cea8e9edde462d4ea.tar.xz linux-a5dd03950aa8be19b61a802cea8e9edde462d4ea.zip |
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>
-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, dev_dbg(hsotg->dev, "GetHubDescriptor\n"); hub_desc = (struct usb_hub_descriptor *)buf; hub_desc->bDescLength = 9; - hub_desc->bDescriptorType = 0x29; + hub_desc->bDescriptorType = USB_DT_HUB; hub_desc->bNbrPorts = 1; hub_desc->wHubCharacteristics = cpu_to_le16(HUB_CHAR_COMMON_LPSM | |