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 <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer
2025-07-18 00:28:40 +02:00
committed by Alberto Escolar
parent ba04734220
commit 506a59396f

View File

@@ -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