diff options
Diffstat (limited to 'platform/sysroot/usr/include/linux/usb/ch9.h')
-rw-r--r-- | platform/sysroot/usr/include/linux/usb/ch9.h | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/platform/sysroot/usr/include/linux/usb/ch9.h b/platform/sysroot/usr/include/linux/usb/ch9.h index 9ddc6402a..b858bacad 100644 --- a/platform/sysroot/usr/include/linux/usb/ch9.h +++ b/platform/sysroot/usr/include/linux/usb/ch9.h @@ -1,21 +1,9 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ +/* + * This file is auto-generated. Modifications will be lost. + * + * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ + * for more information. + */ #ifndef _UAPI__LINUX_USB_CH9_H #define _UAPI__LINUX_USB_CH9_H #include <linux/types.h> @@ -203,7 +191,10 @@ struct usb_config_descriptor { struct usb_string_descriptor { __u8 bLength; __u8 bDescriptorType; - __le16 wData[1]; + union { + __le16 legacy_padding; + __DECLARE_FLEX_ARRAY(__le16, wData); + }; } __attribute__((packed)); struct usb_interface_descriptor { __u8 bLength; @@ -441,7 +432,10 @@ struct usb_ssp_cap_descriptor { #define USB_SSP_MIN_RX_LANE_COUNT (0xf << 8) #define USB_SSP_MIN_TX_LANE_COUNT (0xf << 12) __le16 wReserved; - __le32 bmSublinkSpeedAttr[1]; + union { + __le32 legacy_padding; + __DECLARE_FLEX_ARRAY(__le32, bmSublinkSpeedAttr); + }; #define USB_SSP_SUBLINK_SPEED_SSID (0xf) #define USB_SSP_SUBLINK_SPEED_LSE (0x3 << 4) #define USB_SSP_SUBLINK_SPEED_LSE_BPS 0 |