Skip to contentSkip to conversation

Make TI_ST a menuconfig to ease disabling it all

PATCH New Vincent Legoll 1 participant 3 messages Apr 14, 2017 – Dec 3, 2017 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make TI_ST a menuconfig to ease disabling it all

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

---
 drivers/misc/ti-st/Kconfig | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/misc/ti-st/Kconfig +5 -4
index f34dcc5..9b297ca 100644
@@ -2,10 +2,13 @@
 # TI's shared transport line discipline and the protocol
 # drivers (BT, FM and GPS)
 #
-menu "Texas Instruments shared transport line discipline"
+
+menuconfig TIST
+	tristate "Texas Instruments shared transport line discipline"
+
 config TI_ST
 	tristate "Shared transport core driver"
-	depends on NET && GPIOLIB && TTY
+	depends on TIST && NET && GPIOLIB && TTY
 	select FW_LOADER
 	help
 	  This enables the shared transport core driver for TI
@@ -13,5 +16,3 @@ config TI_ST
 	  to register themselves with core and send data, the responses
 	  are returned to relevant protocol drivers based on their
 	  packet types.
-
-endmenu
Signature · 1 line
2.9.3
#1 lore raw

PATCH v2 1/1 Make TI_ST a menuconfig to ease disabling it all

v2: using bool instead of tristate

#2 lore raw

PATCH 1/1 Make TI_ST a menuconfig to ease disabling it all

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

---
 drivers/misc/ti-st/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/misc/ti-st/Kconfig +4 -4
index f34dcc514730..f007cfa82b89 100644
@@ -2,10 +2,12 @@
 # TI's shared transport line discipline and the protocol
 # drivers (BT, FM and GPS)
 #
-menu "Texas Instruments shared transport line discipline"
+menuconfig TIST
+	bool "Texas Instruments shared transport line discipline"
+
 config TI_ST
 	tristate "Shared transport core driver"
-	depends on NET && GPIOLIB && TTY
+	depends on TIST && NET && GPIOLIB && TTY
 	select FW_LOADER
 	help
 	  This enables the shared transport core driver for TI
@@ -13,5 +15,3 @@ config TI_ST
 	  to register themselves with core and send data, the responses
 	  are returned to relevant protocol drivers based on their
 	  packet types.
-
-endmenu
Signature · 1 line
2.11.0