diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:34:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:16 -0400 |
commit | e27465f51aa40f9826553547f3de25330bfcdeec (patch) | |
tree | ef597e7ebb3e54983838b6ef2dcc37056e9e3314 | |
parent | a5dd03950aa8be19b61a802cea8e9edde462d4ea (diff) |
c67x00-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/c67x00/c67x00-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/c67x00/c67x00-hcd.c b/drivers/usb/c67x00/c67x00-hcd.c index 20ec4eee1ac8..c2d13968da82 100644 --- a/drivers/usb/c67x00/c67x00-hcd.c +++ b/drivers/usb/c67x00/c67x00-hcd.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | static __u8 c67x00_hub_des[] = { | 35 | static __u8 c67x00_hub_des[] = { |
36 | 0x09, /* __u8 bLength; */ | 36 | 0x09, /* __u8 bLength; */ |
37 | 0x29, /* __u8 bDescriptorType; Hub-descriptor */ | 37 | USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */ |
38 | 0x02, /* __u8 bNbrPorts; */ | 38 | 0x02, /* __u8 bNbrPorts; */ |
39 | 0x00, /* __u16 wHubCharacteristics; */ | 39 | 0x00, /* __u16 wHubCharacteristics; */ |
40 | 0x00, /* (per-port OC, no power switching) */ | 40 | 0x00, /* (per-port OC, no power switching) */ |