Skip to contentSkip to conversation

gpio: fold the Kconfig prompt into the option type for GPIO CDEV

PATCH Applied Bartosz Golaszewski 2 participants 3 messages Oct 14, 2024 – Oct 17, 2024 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: fold the Kconfig prompt into the option type for GPIO CDEV

From: Bartosz Golaszewski <[email protected]>

The 'if !EXPERT' bit will work fine if it follows the 'bool "foobar"' declaration. No need to have separate entries for it.

---
 drivers/gpio/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpio/Kconfig +1 -2
index bfa6b5a2c537..7f59e861de5b 100644
@@ -70,8 +70,7 @@ config GPIO_SYSFS
 	  ioctl() operations instead.
 
 config GPIO_CDEV
-	bool
-	prompt "Character device (/dev/gpiochipN) support" if EXPERT
+	bool "Character device (/dev/gpiochipN) support" if EXPERT
 	default y
 	help
 	  Say Y here to add the character device /dev/gpiochipN interface
Signature · 1 line
2.43.0
author Applied
#2 lore raw
In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Quoted 4 lines · Bartosz Golaszewski

The 'if !EXPERT' bit will work fine if it follows the 'bool "foobar"' declaration. No need to have separate entries for it.

Applied, thanks!

[1/1] gpio: fold the Kconfig prompt into the option type for GPIO CDEV

      commit: 3dcf0643fa5cd65e667057cfa11d6e54ac36f2ff

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>