提交 7a2d2672 编写于 作者: S Sergei Shtylyov 提交者: Greg Kroah-Hartman

ohci-hub: 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: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2c42c087
...@@ -536,7 +536,7 @@ ohci_hub_descriptor ( ...@@ -536,7 +536,7 @@ ohci_hub_descriptor (
u32 rh = roothub_a (ohci); u32 rh = roothub_a (ohci);
u16 temp; u16 temp;
desc->bDescriptorType = 0x29; desc->bDescriptorType = USB_DT_HUB;
desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24;
desc->bHubContrCurrent = 0; desc->bHubContrCurrent = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册