From: Lan Tianyu Date: Mon, 10 Sep 2012 13:24:41 +0000 (+0800) Subject: usb: redefine DeviceRemovable and wHubDelay as _le16 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9c2089045b87130e8464ca7e21725959446d7f0c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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));