summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-20 22:10:36 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-20 22:10:36 +0000
commit898902325aaadd20a2c54db25450365615abbb7e (patch)
treeb09fd3b6c61404ccf1898cb2a7504c5884342e8e
parentc34d4cedbd5f2eb380f6ae013cc24abfc32acadf (diff)
downloadFreeBSD-src-898902325aaadd20a2c54db25450365615abbb7e.zip
FreeBSD-src-898902325aaadd20a2c54db25450365615abbb7e.tar.gz
MFp4 //depot/projects/usb@159517
Fix warnings with the IAR compiler. Submitted by: Hans Petter Selasky
-rw-r--r--sys/dev/usb/misc/udbp.c2
-rw-r--r--sys/dev/usb/serial/ucycom.c1
-rw-r--r--sys/dev/usb/serial/ufoma.c1
-rw-r--r--sys/dev/usb/storage/umass.c13
-rw-r--r--sys/dev/usb/storage/urio.c2
-rw-r--r--sys/dev/usb/usb_handle_request.c2
-rw-r--r--sys/dev/usb/usb_msctest.c3
7 files changed, 1 insertions, 23 deletions
diff --git a/sys/dev/usb/misc/udbp.c b/sys/dev/usb/misc/udbp.c
index 2b40ff1..cba9780 100644
--- a/sys/dev/usb/misc/udbp.c
+++ b/sys/dev/usb/misc/udbp.c
@@ -212,7 +212,6 @@ static const struct usb2_config udbp_config[UDBP_T_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &udbp_bulk_write_clear_stall_callback,
.mh.timeout = 1000, /* 1 second */
.mh.interval = 50, /* 50ms */
@@ -223,7 +222,6 @@ static const struct usb2_config udbp_config[UDBP_T_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &udbp_bulk_read_clear_stall_callback,
.mh.timeout = 1000, /* 1 second */
.mh.interval = 50, /* 50ms */
diff --git a/sys/dev/usb/serial/ucycom.c b/sys/dev/usb/serial/ucycom.c
index a7f5699..f3f99a2 100644
--- a/sys/dev/usb/serial/ucycom.c
+++ b/sys/dev/usb/serial/ucycom.c
@@ -121,7 +121,6 @@ static const struct usb2_config ucycom_config[UCYCOM_N_TRANSFER] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = (sizeof(struct usb2_device_request) + UCYCOM_MAX_IOLEN),
- .mh.flags = {},
.mh.callback = &ucycom_ctrl_write_callback,
.mh.timeout = 1000, /* 1 second */
},
diff --git a/sys/dev/usb/serial/ufoma.c b/sys/dev/usb/serial/ufoma.c
index f29e44c..e84ab1d 100644
--- a/sys/dev/usb/serial/ufoma.c
+++ b/sys/dev/usb/serial/ufoma.c
@@ -252,7 +252,6 @@ static const struct usb2_config
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = (sizeof(struct usb2_device_request) + 1),
- .mh.flags = {},
.mh.callback = &ufoma_ctrl_write_callback,
.mh.timeout = 1000, /* 1 second */
},
diff --git a/sys/dev/usb/storage/umass.c b/sys/dev/usb/storage/umass.c
index c4d8ae1..5007fa2 100644
--- a/sys/dev/usb/storage/umass.c
+++ b/sys/dev/usb/storage/umass.c
@@ -1063,7 +1063,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_reset1_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 500, /* 500 milliseconds */
@@ -1074,7 +1073,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_reset2_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 50, /* 50 milliseconds */
@@ -1085,7 +1083,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_reset3_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 50, /* 50 milliseconds */
@@ -1096,7 +1093,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_OUT,
.mh.bufsize = sizeof(umass_bbb_cbw_t),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_command_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1116,7 +1112,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_data_rd_cs_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1136,7 +1131,6 @@ struct usb2_config umass_bbb_config[UMASS_T_BBB_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_bbb_data_wr_cs_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1160,7 +1154,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.direction = UE_DIR_ANY,
.mh.bufsize = (sizeof(struct usb2_device_request) +
UMASS_CBI_DIAGNOSTIC_CMDLEN),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_reset1_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 500, /* 500 milliseconds */
@@ -1171,7 +1164,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_reset2_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 50, /* 50 milliseconds */
@@ -1182,7 +1174,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_reset3_callback,
.mh.timeout = 5000, /* 5 seconds */
.mh.interval = 50, /* 50 milliseconds */
@@ -1194,7 +1185,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.direction = UE_DIR_ANY,
.mh.bufsize = (sizeof(struct usb2_device_request) +
UMASS_MAX_CMDLEN),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_command_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1214,7 +1204,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_data_rd_cs_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1234,7 +1223,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_data_wr_cs_callback,
.mh.timeout = 5000, /* 5 seconds */
},
@@ -1254,7 +1242,6 @@ struct usb2_config umass_cbi_config[UMASS_T_CBI_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &umass_t_cbi_reset4_callback,
.mh.timeout = 5000, /* ms */
},
diff --git a/sys/dev/usb/storage/urio.c b/sys/dev/usb/storage/urio.c
index e87a7cd..ea80b4e 100644
--- a/sys/dev/usb/storage/urio.c
+++ b/sys/dev/usb/storage/urio.c
@@ -149,7 +149,6 @@ static const struct usb2_config urio_config[URIO_T_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &urio_write_clear_stall_callback,
.mh.timeout = 1000, /* 1 second */
.mh.interval = 50, /* 50ms */
@@ -160,7 +159,6 @@ static const struct usb2_config urio_config[URIO_T_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &urio_read_clear_stall_callback,
.mh.timeout = 1000, /* 1 second */
.mh.interval = 50, /* 50ms */
diff --git a/sys/dev/usb/usb_handle_request.c b/sys/dev/usb/usb_handle_request.c
index 0df5d87..aec9e02 100644
--- a/sys/dev/usb/usb_handle_request.c
+++ b/sys/dev/usb/usb_handle_request.c
@@ -211,7 +211,7 @@ tr_repeat:
(iface->subdev != NULL) &&
device_is_attached(iface->subdev)) {
#if 0
- DEVMETHOD(usb2_handle_request, NULL); /* dummy */
+ DEVMETHOD(usb_handle_request, NULL); /* dummy */
#endif
error = USB_HANDLE_REQUEST(iface->subdev,
&req, ppdata, plen,
diff --git a/sys/dev/usb/usb_msctest.c b/sys/dev/usb/usb_msctest.c
index 4f1004e..bd5fdac 100644
--- a/sys/dev/usb/usb_msctest.c
+++ b/sys/dev/usb/usb_msctest.c
@@ -138,7 +138,6 @@ static const struct usb2_config bbb_config[ST_MAX] = {
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_OUT,
.mh.bufsize = sizeof(struct bbb_cbw),
- .mh.flags = {},
.mh.callback = &bbb_command_callback,
.mh.timeout = 4 * USB_MS_HZ, /* 4 seconds */
},
@@ -158,7 +157,6 @@ static const struct usb2_config bbb_config[ST_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &bbb_data_rd_cs_callback,
.mh.timeout = 1 * USB_MS_HZ, /* 1 second */
},
@@ -178,7 +176,6 @@ static const struct usb2_config bbb_config[ST_MAX] = {
.endpoint = 0x00, /* Control pipe */
.direction = UE_DIR_ANY,
.mh.bufsize = sizeof(struct usb2_device_request),
- .mh.flags = {},
.mh.callback = &bbb_data_wr_cs_callback,
.mh.timeout = 1 * USB_MS_HZ, /* 1 second */
},
OpenPOWER on IntegriCloud