summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
committerhselasky <hselasky@FreeBSD.org>2012-04-02 10:50:42 +0000
commit126953ccbe190fe51094d1ccefda3226d1e5140c (patch)
tree70a9d586e75b3d8e087069f07020564df44b0b99 /sys/dev/usb/controller/uhci.c
parent56216c3bc99342baf89a814301e85dffe7a62a9b (diff)
downloadFreeBSD-src-126953ccbe190fe51094d1ccefda3226d1e5140c.zip
FreeBSD-src-126953ccbe190fe51094d1ccefda3226d1e5140c.tar.gz
Fix compiler warnings, mostly signed issues,
when USB modules are compiled with WARNS=9. MFC after: 1 weeks
Diffstat (limited to 'sys/dev/usb/controller/uhci.c')
-rw-r--r--sys/dev/usb/controller/uhci.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c
index d9091c9..c7a8c19 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -2351,13 +2351,11 @@ static const struct uhci_config_desc uhci_confd = {
static const
struct usb_hub_descriptor_min uhci_hubd_piix =
{
- sizeof(uhci_hubd_piix),
- UDESC_HUB,
- 2,
- {UHD_PWR_NO_SWITCH | UHD_OC_INDIVIDUAL, 0},
- 50, /* power on to power good */
- 0,
- {0x00}, /* both ports are removable */
+ .bDescLength = sizeof(uhci_hubd_piix),
+ .bDescriptorType = UDESC_HUB,
+ .bNbrPorts = 2,
+ .wHubCharacteristics = {UHD_PWR_NO_SWITCH | UHD_OC_INDIVIDUAL, 0},
+ .bPwrOn2PwrGood = 50,
};
/*
OpenPOWER on IntegriCloud