aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-03-28 18:40:24 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 13:03:16 -0400
commit1cf6563b3e9ecdfd8378fb81484632f715607a04 (patch)
tree940c27c9b9a85ea965c909d1e47bfe6a98bf49e5
parente95af3aa1dc791d04795dbd12597cbe71405765d (diff)
isp1760-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/isp1760/isp1760-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c
index 3cb98b1d5d29..9e23153c3c2e 100644
--- a/drivers/usb/isp1760/isp1760-hcd.c
+++ b/drivers/usb/isp1760/isp1760-hcd.c
@@ -1758,7 +1758,7 @@ static void isp1760_hub_descriptor(struct isp1760_hcd *priv,
1758 int ports = HCS_N_PORTS(priv->hcs_params); 1758 int ports = HCS_N_PORTS(priv->hcs_params);
1759 u16 temp; 1759 u16 temp;
1760 1760
1761 desc->bDescriptorType = 0x29; 1761 desc->bDescriptorType = USB_DT_HUB;
1762 /* priv 1.0, 2.3.9 says 20ms max */ 1762 /* priv 1.0, 2.3.9 says 20ms max */
1763 desc->bPwrOn2PwrGood = 10; 1763 desc->bPwrOn2PwrGood = 10;
1764 desc->bHubContrCurrent = 0; 1764 desc->bHubContrCurrent = 0;