summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLan Tianyu2012-09-10 15:24:41 +0200
committerGreg Kroah-Hartman2012-09-10 20:14:32 +0200
commit9c2089045b87130e8464ca7e21725959446d7f0c (patch)
treef3e9f4cb713856a8ee6a5415761786db05484ce8 /include
parentusb/core: use bin2bcd() for bcdDevice in RH (diff)
downloadkernel-qcow2-linux-9c2089045b87130e8464ca7e21725959446d7f0c.tar.gz
kernel-qcow2-linux-9c2089045b87130e8464ca7e21725959446d7f0c.tar.xz
kernel-qcow2-linux-9c2089045b87130e8464ca7e21725959446d7f0c.zip
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')
-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 b6c2863b2c94..7692dc69ccf7 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));