summaryrefslogtreecommitdiff
path: root/include/linux/usb
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-09-10 13:24:41 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 18:14:32 (GMT)
commit9c2089045b87130e8464ca7e21725959446d7f0c (patch)
treef3e9f4cb713856a8ee6a5415761786db05484ce8 /include/linux/usb
parentb53d657d84f530e5d83f34ff1b81ceedad3faa31 (diff)
downloadlinux-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>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/ch11.h4
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));