]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpio: fold the Kconfig prompt into the option type for GPIO CDEV
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 14 Oct 2024 11:07:07 +0000 (13:07 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 17 Oct 2024 06:53:19 +0000 (08:53 +0200)
The 'if !EXPERT' bit will work fine if it follows the 'bool "foobar"'
declaration. No need to have separate entries for it.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20241014110707.101320-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig

index efddc6455315c75d691f921868b568f14ce5479d..346bb3c8e34c98391dcf43ee04dfc301781e74da 100644 (file)
@@ -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