summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-29 01:34:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 19:03:16 +0200
commite27465f51aa40f9826553547f3de25330bfcdeec (patch)
treeef597e7ebb3e54983838b6ef2dcc37056e9e3314 /drivers/usb
parenta5dd03950aa8be19b61a802cea8e9edde462d4ea (diff)
downloadop-kernel-dev-e27465f51aa40f9826553547f3de25330bfcdeec.zip
op-kernel-dev-e27465f51aa40f9826553547f3de25330bfcdeec.tar.gz
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/c67x00/c67x00-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/c67x00/c67x00-hcd.c b/drivers/usb/c67x00/c67x00-hcd.c
index 20ec4ee..c2d1396 100644
--- a/drivers/usb/c67x00/c67x00-hcd.c
+++ b/drivers/usb/c67x00/c67x00-hcd.c
@@ -34,7 +34,7 @@
static __u8 c67x00_hub_des[] = {
0x09, /* __u8 bLength; */
- 0x29, /* __u8 bDescriptorType; Hub-descriptor */
+ USB_DT_HUB, /* __u8 bDescriptorType; Hub-descriptor */
0x02, /* __u8 bNbrPorts; */
0x00, /* __u16 wHubCharacteristics; */
0x00, /* (per-port OC, no power switching) */
OpenPOWER on IntegriCloud