summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/adb_template.c1
-rw-r--r--demo/gs_usb_template.c1
-rw-r--r--demo/mtp_template.c1
-rw-r--r--demo/winusb1.0_template.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/demo/adb_template.c b/demo/adb_template.c
index 871d41a7..34715509 100644
--- a/demo/adb_template.c
+++ b/demo/adb_template.c
@@ -100,6 +100,7 @@ struct usb_msosv1_descriptor msosv1_desc = {
.vendor_code = WCID_VENDOR_CODE,
.compat_id = WINUSB_WCIDDescriptor,
.comp_id_property = WINUSB_IFx_WCIDProperties,
+ .comp_id_property_count = sizeof(WINUSB_IFx_WCIDProperties) / sizeof(WINUSB_IFx_WCIDProperties[0]),
};
static const uint8_t device_descriptor[] = {
diff --git a/demo/gs_usb_template.c b/demo/gs_usb_template.c
index b82c41c8..d6b533c1 100644
--- a/demo/gs_usb_template.c
+++ b/demo/gs_usb_template.c
@@ -74,6 +74,7 @@ struct usb_msosv1_descriptor linux_msosv1_desc = {
.vendor_code = LINUX_USBD_GS_CAN_VENDOR_CODE,
.compat_id = linux_WINUSB_WCIDDescriptor,
.comp_id_property = linux_WINUSB_IFx_WCIDProperties,
+ .comp_id_property_count = sizeof(linux_WINUSB_IFx_WCIDProperties) / sizeof(linux_WINUSB_IFx_WCIDProperties[0]),
};
static const uint8_t linux_device_descriptor[] = {
diff --git a/demo/mtp_template.c b/demo/mtp_template.c
index 11950d26..f42a3a57 100644
--- a/demo/mtp_template.c
+++ b/demo/mtp_template.c
@@ -194,6 +194,7 @@ struct usb_msosv1_descriptor msosv1_desc = {
.vendor_code = WCID_VENDOR_CODE,
.compat_id = WINUSB_WCIDDescriptor,
.comp_id_property = WINUSB_IFx_WCIDProperties,
+ .comp_id_property_count = sizeof(WINUSB_IFx_WCIDProperties) / sizeof(WINUSB_IFx_WCIDProperties[0]),
};
const struct usb_bos_descriptor bos_desc = {
diff --git a/demo/winusb1.0_template.c b/demo/winusb1.0_template.c
index 692bddc5..3fafe59e 100644
--- a/demo/winusb1.0_template.c
+++ b/demo/winusb1.0_template.c
@@ -106,6 +106,7 @@ struct usb_msosv1_descriptor msosv1_desc = {
.vendor_code = WINUSB_VENDOR_CODE,
.compat_id = WINUSB_WCIDDescriptor,
.comp_id_property = WINUSB_IFx_WCIDProperties,
+ .comp_id_property_count = sizeof(WINUSB_IFx_WCIDProperties) / sizeof(WINUSB_IFx_WCIDProperties[0]),
};
#define WINUSB_IN_EP 0x81