summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-09-10 21:24:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 11:14:32 -0700
commit9c2089045b87130e8464ca7e21725959446d7f0c (patch)
treef3e9f4cb713856a8ee6a5415761786db05484ce8
parentb53d657d84f530e5d83f34ff1b81ceedad3faa31 (diff)
downloadblackbird-op-linux-9c2089045b87130e8464ca7e21725959446d7f0c.tar.gz
blackbird-op-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>
-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));
OpenPOWER on IntegriCloud