aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/dummy_hcd.c
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2005-05-07 16:05:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-27 17:43:53 -0400
commit1bbc169621cbe502b9143a27eb12802a0f1d43a0 (patch)
treea8fc4a429d890ea02ef1084ec3ffb2a9b9ef9c61 /drivers/usb/gadget/dummy_hcd.c
parent028b271b687714f9fc7a1e89bb79f1fbeef154ee (diff)
[PATCH] USB: gadget driver updates (SETUP api change)
This updates most of the gadget framework to expect SETUP packets use USB byteorder (matching the annotation in <linux/usb_ch9.h> and usage in the host side stack): - definition in <linux/usb_gadget.h> - gadget drivers: Ethernet/RNDIS, serial/ACM, file_storage, gadgetfs. - dummy_hcd It also includes some other similar changes as suggested by "sparse", which was used to detect byteorder bugs. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/dummy_hcd.c')
-rw-r--r--drivers/usb/gadget/dummy_hcd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index 73d2f24050ab..f9540adf2a4f 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -1267,9 +1267,6 @@ restart:
1267 struct dummy_ep *ep2; 1267 struct dummy_ep *ep2;
1268 1268
1269 setup = *(struct usb_ctrlrequest*) urb->setup_packet; 1269 setup = *(struct usb_ctrlrequest*) urb->setup_packet;
1270 le16_to_cpus (&setup.wIndex);
1271 le16_to_cpus (&setup.wValue);
1272 le16_to_cpus (&setup.wLength);
1273 if (setup.wLength != urb->transfer_buffer_length) { 1270 if (setup.wLength != urb->transfer_buffer_length) {
1274 maybe_set_status (urb, -EOVERFLOW); 1271 maybe_set_status (urb, -EOVERFLOW);
1275 goto return_urb; 1272 goto return_urb;