diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:06:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:19 -0400 |
commit | 4631f4e9856efc296c1e80bcd69b3375d75bf834 (patch) | |
tree | 57c44290c685781a85eb986dab075dbdc4e5bb8e /drivers/usb | |
parent | 87327b14621a10f0382c49ac181de7aaa5c2c88a (diff) |
fotg210-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/fotg210-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index 475b21fd373b..af08ff12954d 100644 --- a/drivers/usb/host/fotg210-hcd.c +++ b/drivers/usb/host/fotg210-hcd.c | |||
@@ -1509,7 +1509,7 @@ fotg210_hub_descriptor( | |||
1509 | int ports = HCS_N_PORTS(fotg210->hcs_params); | 1509 | int ports = HCS_N_PORTS(fotg210->hcs_params); |
1510 | u16 temp; | 1510 | u16 temp; |
1511 | 1511 | ||
1512 | desc->bDescriptorType = 0x29; | 1512 | desc->bDescriptorType = USB_DT_HUB; |
1513 | desc->bPwrOn2PwrGood = 10; /* fotg210 1.0, 2.3.9 says 20ms max */ | 1513 | desc->bPwrOn2PwrGood = 10; /* fotg210 1.0, 2.3.9 says 20ms max */ |
1514 | desc->bHubContrCurrent = 0; | 1514 | desc->bHubContrCurrent = 0; |
1515 | 1515 | ||