diff mbox

ssb: make SSB a menuconfig to ease disabling it all

Message ID 20171204222744.8817-2-vincent.legoll@gmail.com (mailing list archive)
State Accepted
Commit 8c9fdd7687d9eeff766d9b39f42c5385aa33e086
Delegated to: Kalle Valo
Headers show

Commit Message

Vincent Legoll Dec. 4, 2017, 10:27 p.m. UTC
No need to get into the submenu to disable all SSB-related
config entries.

This makes it easier to disable all SSB 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.

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/ssb/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Comments

Kalle Valo Dec. 7, 2017, 1:45 p.m. UTC | #1
Vincent Legoll <vincent.legoll@gmail.com> wrote:

> No need to get into the submenu to disable all SSB-related
> config entries.
> 
> This makes it easier to disable all SSB 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.
> 
> Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>

Patch applied to wireless-drivers-next.git, thanks.

8c9fdd7687d9 ssb: make SSB a menuconfig to ease disabling it all
diff mbox

Patch

diff --git a/drivers/ssb/Kconfig b/drivers/ssb/Kconfig
index d8e4219c2324..f48a2ee587a4 100644
--- a/drivers/ssb/Kconfig
+++ b/drivers/ssb/Kconfig
@@ -3,10 +3,7 @@  config SSB_POSSIBLE
 	depends on HAS_IOMEM && HAS_DMA
 	default y
 
-menu "Sonics Silicon Backplane"
-	depends on SSB_POSSIBLE
-
-config SSB
+menuconfig SSB
 	tristate "Sonics Silicon Backplane support"
 	depends on SSB_POSSIBLE
 	help
@@ -21,6 +18,8 @@  config SSB
 
 	  If unsure, say N.
 
+if SSB
+
 # Common SPROM support routines
 config SSB_SPROM
 	bool
@@ -185,4 +184,4 @@  config SSB_DRIVER_GPIO
 
 	  If unsure, say N
 
-endmenu
+endif # SSB