aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-14 13:07:07 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-10-17 08:53:19 +0200
commit3dcf0643fa5cd65e667057cfa11d6e54ac36f2ff (patch)
tree62c18f2425b7e9f88dc8568f325d9dde3475ce94
parentgpio: sysfs: constify gpio class (diff)
downloadwireguard-linux-3dcf0643fa5cd65e667057cfa11d6e54ac36f2ff.tar.xz
wireguard-linux-3dcf0643fa5cd65e667057cfa11d6e54ac36f2ff.zip
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 <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>
-rw-r--r--drivers/gpio/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index efddc6455315..346bb3c8e34c 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