pinctrl: change Kconfig PINCTRL variable to a menuconfig
authorPhil Reid <preid@electromag.com.au>
Fri, 6 Oct 2017 05:08:05 +0000 (13:08 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Oct 2017 07:58:03 +0000 (09:58 +0200)
This allows PINCTRL to be selected manually to allow enabling of the
mcp23s08 i2c/spi gpio driver. Which is not platform specific.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index 1778cf4..8da29e9 100644 (file)
@@ -2,11 +2,10 @@
 # PINCTRL infrastructure and drivers
 #
 
-config PINCTRL
-       bool
+menuconfig PINCTRL
+       bool "Pin controllers"
 
-menu "Pin controllers"
-       depends on PINCTRL
+if PINCTRL
 
 config GENERIC_PINCTRL_GROUPS
        bool
@@ -379,4 +378,4 @@ config PINCTRL_TB10X
        depends on OF && ARC_PLAT_TB10X
        select GPIOLIB
 
-endmenu
+endif