diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-29 01:10:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 19:03:18 +0200 |
commit | 6a0855673ea81f436625ff0e471e990e503232c9 (patch) | |
tree | 6e9e837bf1f5a1629d0899b94a9ad59dd882f917 /drivers/usb/host/isp116x-hcd.c | |
parent | 00d29b3e9320112c3d53d6865af60492dbc29163 (diff) | |
download | op-kernel-dev-6a0855673ea81f436625ff0e471e990e503232c9.zip op-kernel-dev-6a0855673ea81f436625ff0e471e990e503232c9.tar.gz |
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>
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index 113d0cc..aa335fa 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, { u32 reg = isp116x->rhdesca; - desc->bDescriptorType = 0x29; + desc->bDescriptorType = USB_DT_HUB; desc->bDescLength = 9; desc->bHubContrCurrent = 0; desc->bNbrPorts = (u8) (reg & 0x3); |