Skip to contentSkip to conversation

gpio: lpc18xx: convert GPIO_LPC18XX from bool to tristate

PATCH In review Paul Gortmaker 2 participants 2 messages Jun 5, 2016 – Jun 8, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: lpc18xx: convert GPIO_LPC18XX from bool to tristate

The Kconfig currently controlling compilation of this code is:

config GPIO_LPC18XX
bool "NXP LPC18XX/43XX GPIO support"

...meaning that it currently is not being built as a module by anyone.

When targeting orphaned modular code in non-modular drivers, this came up. Joachim indicated that the driver was actually meant to be tristate but ended up bool by accident. So here we make it tristate instead of removing the modular code that was essentially orphaned.

---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
index 92443817b1ae..03aaa2a1f431 100644
@@ -249,7 +249,7 @@ config GPIO_LOONGSON
 	  driver for GPIO functionality on Loongson-2F/3A/3B processors.
 
 config GPIO_LPC18XX
-	bool "NXP LPC18XX/43XX GPIO support"
+	tristate "NXP LPC18XX/43XX GPIO support"
 	default y if ARCH_LPC18XX
 	depends on OF_GPIO && (ARCH_LPC18XX || COMPILE_TEST)
 	help
Signature · 1 line
2.8.0
#1 lore raw
Quoted 13 lines · Paul Gortmaker

The Kconfig currently controlling compilation of this code is:

config GPIO_LPC18XX
bool "NXP LPC18XX/43XX GPIO support"

...meaning that it currently is not being built as a module by anyone.

When targeting orphaned modular code in non-modular drivers, this came up. Joachim indicated that the driver was actually meant to be tristate but ended up bool by accident. So here we make it tristate instead of removing the modular code that was essentially orphaned.

Quoted 6 lines

Patch applied.

Yours,
Linus Walleij