File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
subsys/usb/device_next/class Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ const static struct usb_desc_header *bt_hci_fs_desc_##n[] = { \
635
635
(struct usb_desc_header *) &bt_hci_desc_##n.nil_desc, \
636
636
}; \
637
637
\
638
- const static struct usb_desc_header *bt_hci_hs_desc_##n[] = { \
638
+ const static __maybe_unused struct usb_desc_header *bt_hci_hs_desc_##n[] = { \
639
639
(struct usb_desc_header *) &bt_hci_desc_##n.iad, \
640
640
(struct usb_desc_header *) &bt_hci_desc_##n.if0, \
641
641
(struct usb_desc_header *) &bt_hci_desc_##n.if0_int_ep, \
@@ -655,7 +655,8 @@ const static struct usb_desc_header *bt_hci_hs_desc_##n[] = { \
655
655
.sync_sem = Z_SEM_INITIALIZER(bt_hci_data_##n.sync_sem, 0, 1), \
656
656
.desc = &bt_hci_desc_##n, \
657
657
.fs_desc = bt_hci_fs_desc_##n, \
658
- .hs_desc = bt_hci_hs_desc_##n, \
658
+ .hs_desc = COND_CODE_1(USBD_SUPPORTS_HIGH_SPEED, \
659
+ (bt_hci_hs_desc_##n), (NULL)), \
659
660
}; \
660
661
\
661
662
USBD_DEFINE_CLASS(bt_hci_##n, &bt_hci_api, \
You can’t perform that action at this time.
0 commit comments