summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2004-10-05 17:56:41 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-05 17:56:41 -0700
commit3106ac94078a5825975aa253c75c6d6a3304b4a8 (patch)
treecfdc4b7ebd6ee3ef95157c5b8f0e8fbe0a2f3393 /include/linux
parent71e05593990e94c2b095c8824df5d596cc4f3ece (diff)
[PATCH] trivial usb endianness annotations
trivial endianness annotations in drivers/usb (apply after ohci and isd200 fixes). Note: drivers/usb is nearly endian-clean at that point; there are several very dubious places in there (in particular, rtl8150, pegasus and usbnet are almost certainly broken in mii-related code on big-endian hosts); I'm leaving them alone for now. Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb_ch9.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/usb_ch9.h b/include/linux/usb_ch9.h
index 2a9e19b10c64..c1aa8d8f67ce 100644
--- a/include/linux/usb_ch9.h
+++ b/include/linux/usb_ch9.h
@@ -103,9 +103,9 @@
struct usb_ctrlrequest {
__u8 bRequestType;
__u8 bRequest;
- __u16 wValue;
- __u16 wIndex;
- __u16 wLength;
+ __le16 wValue;
+ __le16 wIndex;
+ __le16 wLength;
} __attribute__ ((packed));
/*-------------------------------------------------------------------------*/
@@ -230,7 +230,7 @@ struct usb_string_descriptor {
__u8 bLength;
__u8 bDescriptorType;
- __u16 wData[1]; /* UTF-16LE encoded */
+ __le16 wData[1]; /* UTF-16LE encoded */
} __attribute__ ((packed));
/* note that "string" zero is special, it holds language codes that