From 38772492f953221c801ad0fe853b0503dbb9558e Mon Sep 17 00:00:00 2001
From: Kevin O'Connor <kevin@koconnor.net>
Date: Sun, 31 May 2020 20:45:59 -0400
Subject: [PATCH] Kconfig: Only show the "usb ids" menu if low-level options
 are enabled

It's rare to customize the usb ids, so make it a "low-level" option.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
---
 src/Kconfig | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/Kconfig b/src/Kconfig
index b5b75d74d..7278ada0c 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -48,23 +48,26 @@ config SERIAL_BAUD
         to 250000. Read the FAQ before changing this value.
 
 # Generic configuration options for USB
-menu "USB ids"
-    depends on USBSERIAL
-
 config USB_VENDOR_ID
-    hex "USB vendor ID"
     default 0x1d50
 config USB_DEVICE_ID
-    hex "USB device ID"
     default 0x614e
 config USB_SERIAL_NUMBER_CHIPID
     depends on HAVE_CHIPID
-    bool "USB serial number from CHIPID"
     default y
 config USB_SERIAL_NUMBER
-    string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
     default "12345"
 
+menu "USB ids"
+    depends on USBSERIAL && LOW_LEVEL_OPTIONS
+config USB_VENDOR_ID
+    hex "USB vendor ID"
+config USB_DEVICE_ID
+    hex "USB device ID"
+config USB_SERIAL_NUMBER_CHIPID
+    bool "USB serial number from CHIPID" if HAVE_CHIPID
+config USB_SERIAL_NUMBER
+    string "USB serial number" if !USB_SERIAL_NUMBER_CHIPID
 endmenu
 
 # Step timing customization