From: Bartosz Golaszewski Date: Mon, 14 Oct 2024 11:07:07 +0000 (+0200) Subject: gpio: fold the Kconfig prompt into the option type for GPIO CDEV X-Git-Tag: v6.13-rc1~156^2~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dcf0643fa5cd65e667057cfa11d6e54ac36f2ff;p=thirdparty%2Flinux.git gpio: fold the Kconfig prompt into the option type for GPIO CDEV 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 Link: https://lore.kernel.org/r/20241014110707.101320-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index efddc6455315c..346bb3c8e34c9 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -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