Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c208904 authored by Lan Tianyu's avatar Lan Tianyu Committed by Greg Kroah-Hartman
Browse files

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: default avatarLan Tianyu <tianyu.lan@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b53d657d
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -236,8 +236,8 @@ struct usb_hub_descriptor {


		struct {
		struct {
			__u8 bHubHdrDecLat;
			__u8 bHubHdrDecLat;
			__u16 wHubDelay;
			__le16 wHubDelay;
			__u16 DeviceRemovable;
			__le16 DeviceRemovable;
		}  __attribute__ ((packed)) ss;
		}  __attribute__ ((packed)) ss;
	} u;
	} u;
} __attribute__ ((packed));
} __attribute__ ((packed));