diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2012-09-10 13:24:41 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-10 18:14:32 (GMT) |
commit | 9c2089045b87130e8464ca7e21725959446d7f0c (patch) | |
tree | f3e9f4cb713856a8ee6a5415761786db05484ce8 | |
parent | b53d657d84f530e5d83f34ff1b81ceedad3faa31 (diff) | |
download | linux-fsl-qoriq-9c2089045b87130e8464ca7e21725959446d7f0c.tar.xz |
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>
-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 b6c2863..7692dc6 100644 --- a/include/linux/usb/ch11.h +++ b/include/linux/usb/ch11.h @@ -236,8 +236,8 @@ struct usb_hub_descriptor { struct { __u8 bHubHdrDecLat; - __u16 wHubDelay; - __u16 DeviceRemovable; + __le16 wHubDelay; + __le16 DeviceRemovable; } __attribute__ ((packed)) ss; } u; } __attribute__ ((packed)); |