aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-28 18:12:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 13:03:18 -0400
commit00d29b3e9320112c3d53d6865af60492dbc29163 (patch)
tree8a954d2e23c5d850c91bb8406d5c5b4dd07cc361 /drivers/usb
parente3d02e0e54bce76e331529dd6f47d61cecc9d375 (diff)
isp1362-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/isp1362-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c
index b32ab60cad1e..6cf82ee460a6 100644
--- a/drivers/usb/host/isp1362-hcd.c
+++ b/drivers/usb/host/isp1362-hcd.c
@@ -1538,7 +1538,7 @@ static void isp1362_hub_descriptor(struct isp1362_hcd *isp1362_hcd,
1538 1538
1539 DBG(3, "%s: enter\n", __func__); 1539 DBG(3, "%s: enter\n", __func__);
1540 1540
1541 desc->bDescriptorType = 0x29; 1541 desc->bDescriptorType = USB_DT_HUB;
1542 desc->bDescLength = 9; 1542 desc->bDescLength = 9;
1543 desc->bHubContrCurrent = 0; 1543 desc->bHubContrCurrent = 0;
1544 desc->bNbrPorts = reg & 0x3; 1544 desc->bNbrPorts = reg & 0x3;