aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-28 18:30:04 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 13:03:16 -0400
commit3e5dd4c349465066b85a487af6fabd4fc32c7987 (patch)
tree781c6a9e3a007581ab666f7910210883bcc63fb7 /drivers/usb/host
parente27465f51aa40f9826553547f3de25330bfcdeec (diff)
uhci-hub: use USB_DT_HUB
Fix using the bare numbers to set the 'bHubCharacteristics' field of the Hub Descriptor while the values are #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/host')
-rw-r--r--drivers/usb/host/uhci-hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/uhci-hub.c b/drivers/usb/host/uhci-hub.c
index 19ba5eafb31e..a7cc0221e003 100644
--- a/drivers/usb/host/uhci-hub.c
+++ b/drivers/usb/host/uhci-hub.c
@@ -15,7 +15,7 @@
15static const __u8 root_hub_hub_des[] = 15static const __u8 root_hub_hub_des[] =
16{ 16{
17 0x09, /* __u8 bLength; */ 17 0x09, /* __u8 bLength; */
18 0x29, /* __u8 bDescriptorType; Hub-descriptor */ 18 USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */
19 0x02, /* __u8 bNbrPorts; */ 19 0x02, /* __u8 bNbrPorts; */
20 HUB_CHAR_NO_LPSM | /* __u16 wHubCharacteristics; */ 20 HUB_CHAR_NO_LPSM | /* __u16 wHubCharacteristics; */
21 HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */ 21 HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */