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>
This commit is contained in:
		
					parent
					
						
							
								b53d657d84
							
						
					
				
			
			
				commit
				
					
						9c2089045b
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue