From 506a59396fdfa6cbd932d2bcaedee8d8c0b72cbd Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Fri, 18 Jul 2025 00:28:40 +0200 Subject: [PATCH] usb: device_next: fix compilation if the user disables HWINFO Make USBD_HWINFO_DEVID_LENGTH prompt optional so that the code compiles even if HWINFO is disabled. Signed-off-by: Johann Fischer --- subsys/usb/device_next/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subsys/usb/device_next/Kconfig b/subsys/usb/device_next/Kconfig index 5e7b02e5ee7..dd7748f51b4 100644 --- a/subsys/usb/device_next/Kconfig +++ b/subsys/usb/device_next/Kconfig @@ -96,8 +96,7 @@ config USBD_MSG_WORK_DELAY yet ready to publish the message. The delay unit is milliseconds. config USBD_HWINFO_DEVID_LENGTH - int "The length of the device ID requested from HWINFO in bytes" - depends on HWINFO + int "The length of the device ID requested from HWINFO in bytes" if HWINFO range 8 128 default 16 help