summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-07-23 15:51:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-24 08:57:57 +0200
commit6931e9007c7f189c0a66d4a66d2aa1a936a4d385 (patch)
treeaf4b458fe4bd86823e3e25deeede23f9fe69bba3 /drivers/usb/host
parentf261bce3a699fd11f7f2d0bbbde26ec26ed1d55f (diff)
downloadbarebox-6931e9007c7f189c0a66d4a66d2aa1a936a4d385.tar.gz
barebox-6931e9007c7f189c0a66d4a66d2aa1a936a4d385.tar.xz
USB: Use descriptors from ch11.h
Use the descriptors from ch11.h instead of duplicating them in usb.h. usb_hub_descriptor now contains a union .u to differentiate HS hub descriptor from SS hub descriptor. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-hcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index ab1bc0331b..a76e06bd56 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -69,8 +69,8 @@ static struct descriptor {
.wHubCharacteristics = 0,
.bPwrOn2PwrGood = 10,
.bHubContrCurrent = 0,
- .DeviceRemovable = {},
- .PortPowerCtrlMask = {}
+ .u.hs.DeviceRemovable = {},
+ .u.hs.PortPwrCtrlMask = {}
},
.device = {
.bLength = USB_DT_DEVICE_SIZE,