diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2012-09-10 09:24:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-10 14:14:32 -0400 |
commit | 9c2089045b87130e8464ca7e21725959446d7f0c (patch) | |
tree | f3e9f4cb713856a8ee6a5415761786db05484ce8 /include/linux | |
parent | b53d657d84f530e5d83f34ff1b81ceedad3faa31 (diff) |
usb: redefine DeviceRemovable and wHubDelay as _le16
DeviceRemovalbe and wHubDelay for usb3.0 hub are little-endian
and so define them as _le16.
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/ch11.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/usb/ch11.h b/include/linux/usb/ch11.h index b6c2863b2c9..7692dc69ccf 100644 --- a/include/linux/usb/ch11.h +++ b/include/linux/usb/ch11.h | |||
@@ -236,8 +236,8 @@ struct usb_hub_descriptor { | |||
236 | 236 | ||
237 | struct { | 237 | struct { |
238 | __u8 bHubHdrDecLat; | 238 | __u8 bHubHdrDecLat; |
239 | __u16 wHubDelay; | 239 | __le16 wHubDelay; |
240 | __u16 DeviceRemovable; | 240 | __le16 DeviceRemovable; |
241 | } __attribute__ ((packed)) ss; | 241 | } __attribute__ ((packed)) ss; |
242 | } u; | 242 | } u; |
243 | } __attribute__ ((packed)); | 243 | } __attribute__ ((packed)); |