Skip to content

Commit

Permalink
usb: redefine DeviceRemovable and wHubDelay as _le16
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lan Tianyu authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent b53d657 commit 9c20890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/usb/ch11.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 9c20890

Please sign in to comment.