diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-01-25 13:00:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-02-03 18:28:32 -0500 |
commit | 673016d9f7f7a92636cb83ee1120deaa66269322 (patch) | |
tree | b8507c269b58ef91b79cbb6c76a784d83e769af7 /drivers/usb/host/uhci-hub.c | |
parent | c31316cb6c5adeb3f6e92094d717faa375245822 (diff) |
uhci-hub: use HUB_CHAR_*
Fix using the bare number to set the 'wHubCharacteristics' field of the Hub
Descriptor while the values are #define'd in <linux/usb/ch11.h>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/uhci-hub.c')
-rw-r--r-- | drivers/usb/host/uhci-hub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/uhci-hub.c b/drivers/usb/host/uhci-hub.c index 93e17b12fb33..19ba5eafb31e 100644 --- a/drivers/usb/host/uhci-hub.c +++ b/drivers/usb/host/uhci-hub.c | |||
@@ -17,8 +17,9 @@ static const __u8 root_hub_hub_des[] = | |||
17 | 0x09, /* __u8 bLength; */ | 17 | 0x09, /* __u8 bLength; */ |
18 | 0x29, /* __u8 bDescriptorType; Hub-descriptor */ | 18 | 0x29, /* __u8 bDescriptorType; Hub-descriptor */ |
19 | 0x02, /* __u8 bNbrPorts; */ | 19 | 0x02, /* __u8 bNbrPorts; */ |
20 | 0x0a, /* __u16 wHubCharacteristics; */ | 20 | HUB_CHAR_NO_LPSM | /* __u16 wHubCharacteristics; */ |
21 | 0x00, /* (per-port OC, no power switching) */ | 21 | HUB_CHAR_INDV_PORT_OCPM, /* (per-port OC, no power switching) */ |
22 | 0x00, | ||
22 | 0x01, /* __u8 bPwrOn2pwrGood; 2ms */ | 23 | 0x01, /* __u8 bPwrOn2pwrGood; 2ms */ |
23 | 0x00, /* __u8 bHubContrCurrent; 0 mA */ | 24 | 0x00, /* __u8 bHubContrCurrent; 0 mA */ |
24 | 0x00, /* __u8 DeviceRemovable; *** 7 Ports max */ | 25 | 0x00, /* __u8 DeviceRemovable; *** 7 Ports max */ |