summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-29 01:07:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 19:03:19 +0200
commit87327b14621a10f0382c49ac181de7aaa5c2c88a (patch)
tree676863edb8318f1ceda2d51ba5e98013716ce23b /drivers/usb
parent72cce8cb05bfe9ff545520606e51651adb1bac33 (diff)
downloadblackbird-op-linux-87327b14621a10f0382c49ac181de7aaa5c2c88a.tar.gz
blackbird-op-linux-87327b14621a10f0382c49ac181de7aaa5c2c88a.zip
fusbh200-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/host/fusbh200-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c
index a83eefefffda..eb39a451ef06 100644
--- a/drivers/usb/host/fusbh200-hcd.c
+++ b/drivers/usb/host/fusbh200-hcd.c
@@ -1467,7 +1467,7 @@ fusbh200_hub_descriptor (
int ports = HCS_N_PORTS (fusbh200->hcs_params);
u16 temp;
- desc->bDescriptorType = 0x29;
+ desc->bDescriptorType = USB_DT_HUB;
desc->bPwrOn2PwrGood = 10; /* fusbh200 1.0, 2.3.9 says 20ms max */
desc->bHubContrCurrent = 0;
OpenPOWER on IntegriCloud