Skip to contentSkip to conversation

nvme: make NVME a menuconfig to ease disabling it all

PATCH New Vincent Legoll 1 participant 1 message Dec 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme: make NVME a menuconfig to ease disabling it all

No need to get into the submenu to disable all related config entries.

This makes it easier to disable all NVME config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

---
 drivers/nvme/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/nvme/Kconfig +5 -2
index 04008e0bbe81..aad33a0dfbce 100644
@@ -1,6 +1,9 @@
-menu "NVME Support"
+menuconfig NVME_MENU
+	bool "NVME Support"
+
+if NVME_MENU
 
 source "drivers/nvme/host/Kconfig"
 source "drivers/nvme/target/Kconfig"
 
-endmenu
+endif # NVME_MENU
Signature · 1 line
2.14.1