[PATCH] nvme: allow deactivating the NVME menuconfig section at once

From: Jan Engelhardt
Date: Wed Sep 06 2023 - 04:11:45 EST


Presently, one needs to enter "NVME subsystem --->", then deselect all options
individually. Speed up that process by making the "--->" line be togglable in
its own right.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxx>
---
drivers/nvme/Kconfig | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/drivers/nvme/Kconfig b/drivers/nvme/Kconfig
index 656e46d938da..58452973ac7a 100644
--- a/drivers/nvme/Kconfig
+++ b/drivers/nvme/Kconfig
@@ -1,8 +1,18 @@
# SPDX-License-Identifier: GPL-2.0-only
-menu "NVME Support"
+menuconfig NVME_SUPPORT
+ bool "NVME Support"
+ default y
+ help
+ Support for Non-Volatile Memory Express.
+
+ The answer to this question will not directly affect the
+ kernel: saying N will just cause the configurator to skip all
+ the questions about NVME.
+
+if NVME_SUPPORT

source "drivers/nvme/common/Kconfig"
source "drivers/nvme/host/Kconfig"
source "drivers/nvme/target/Kconfig"

-endmenu
+endif
--
2.42.0