usb: redefine DeviceRemovable and wHubDelay as _le16
authorLan Tianyu <tianyu.lan@intel.com>
Mon, 10 Sep 2012 13:24:41 +0000 (21:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 18:14:32 +0000 (11:14 -0700)
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>
include/linux/usb/ch11.h

index b6c2863b2c942cafec851abd791a8d93efe13f3b..7692dc69ccf7aeeb16ebc682b57d519c56642ba1 100644 (file)
@@ -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));