diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:26:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:17 -0400 |
commit | e283ef1549f7e9de198d1a8988eff97c9e42f878 (patch) | |
tree | 90dc02317f844b90f9533eb87b26655c45102b2f /drivers/usb/host | |
parent | 0ce6fe9e1b4666ebccb403e6fa4e8304599d50bd (diff) |
sl811-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')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index f1d5c5a11705..53e4fb75b04c 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -1091,7 +1091,7 @@ sl811h_hub_descriptor ( | |||
1091 | ) { | 1091 | ) { |
1092 | u16 temp = 0; | 1092 | u16 temp = 0; |
1093 | 1093 | ||
1094 | desc->bDescriptorType = 0x29; | 1094 | desc->bDescriptorType = USB_DT_HUB; |
1095 | desc->bHubContrCurrent = 0; | 1095 | desc->bHubContrCurrent = 0; |
1096 | 1096 | ||
1097 | desc->bNbrPorts = 1; | 1097 | desc->bNbrPorts = 1; |