Skip to content
This repository
Browse code

pinctrl: hide subsystem from the populace

Machines that have embedded pin controllers need to select them
explicitly, so why broadcast their config options to menuconfig.
We provide a helpful submenu for those machines that do select
it, making it possible to enable debugging for example.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information...
commit 45f034ef205e5439a50d6f7e5f89add93131c0cc 1 parent e0e2075
Linus Walleij authored

Showing 1 changed file with 7 additions and 15 deletions. Show diff stats Hide diff stats

  1. 22  drivers/pinctrl/Kconfig
22  drivers/pinctrl/Kconfig
@@ -2,23 +2,17 @@
2 2
 # PINCTRL infrastructure and drivers
3 3
 #
4 4
 
5  
-menuconfig PINCTRL
6  
-	bool "PINCTRL Support"
  5
+config PINCTRL
  6
+	bool
7 7
 	depends on EXPERIMENTAL
8  
-	help
9  
-	  This enables the PINCTRL subsystem for controlling pins
10  
-	  on chip packages, for example multiplexing pins on primarily
11  
-	  PGA and BGA packages for systems on chip.
12  
-
13  
-	  If unsure, say N.
14 8
 
15 9
 if PINCTRL
16 10
 
  11
+menu "Pin controllers"
  12
+	depends on PINCTRL
  13
+
17 14
 config PINMUX
18 15
 	bool "Support pinmux controllers"
19  
-	help
20  
-	  Say Y here if you want the pincontrol subsystem to handle pin
21  
-	  multiplexing drivers.
22 16
 
23 17
 config DEBUG_PINCTRL
24 18
 	bool "Debug PINCTRL calls"
@@ -30,14 +24,12 @@ config PINMUX_SIRF
30 24
 	bool "CSR SiRFprimaII pinmux driver"
31 25
 	depends on ARCH_PRIMA2
32 26
 	select PINMUX
33  
-	help
34  
-	  Say Y here to enable the SiRFprimaII pinmux driver
35 27
 
36 28
 config PINMUX_U300
37 29
 	bool "U300 pinmux driver"
38 30
 	depends on ARCH_U300
39 31
 	select PINMUX
40  
-	help
41  
-	  Say Y here to enable the U300 pinmux driver
  32
+
  33
+endmenu
42 34
 
43 35
 endif

0 notes on commit 45f034e

Please sign in to comment.
Something went wrong with that request. Please try again.