diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:30:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:16 -0400 |
commit | 3e5dd4c349465066b85a487af6fabd4fc32c7987 (patch) | |
tree | 781c6a9e3a007581ab666f7910210883bcc63fb7 /drivers/usb/host | |
parent | e27465f51aa40f9826553547f3de25330bfcdeec (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.c | 2 |
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 @@ | |||
15 | static const __u8 root_hub_hub_des[] = | 15 | static 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) */ |