aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-28 18:10:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 13:03:18 -0400
commit6a0855673ea81f436625ff0e471e990e503232c9 (patch)
tree6e9e837bf1f5a1629d0899b94a9ad59dd882f917
parent00d29b3e9320112c3d53d6865af60492dbc29163 (diff)
isp116x-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/host/isp116x-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c
index 113d0cc6cc43..aa335fa716d1 100644
--- a/drivers/usb/host/isp116x-hcd.c
+++ b/drivers/usb/host/isp116x-hcd.c
@@ -943,7 +943,7 @@ static void isp116x_hub_descriptor(struct isp116x *isp116x,
943{ 943{
944 u32 reg = isp116x->rhdesca; 944 u32 reg = isp116x->rhdesca;
945 945
946 desc->bDescriptorType = 0x29; 946 desc->bDescriptorType = USB_DT_HUB;
947 desc->bDescLength = 9; 947 desc->bDescLength = 9;
948 desc->bHubContrCurrent = 0; 948 desc->bHubContrCurrent = 0;
949 desc->bNbrPorts = (u8) (reg & 0x3); 949 desc->bNbrPorts = (u8) (reg & 0x3);