kernel: add KERNEL_GPIO_CDEV_V1 config option
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 9 Nov 2022 11:19:20 +0000 (13:19 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 9 Nov 2022 11:34:54 +0000 (13:34 +0200)
Add a new kernel config option to enable GPIO_CDEV_V1. This is currently
disabled, but required by libgpiod. Make it a config option so we can
change it to enabled by default, while allowing users to override this
default in case they need the new ABI.

As this should be a noop change, leave the actual change of the default
for a separate commit.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
config/Config-kernel.in
target/linux/generic/config-5.10
target/linux/generic/config-5.15

index c7ce9993b6a24c590d91a6a52b7e176f3afc3212..e389daa7f44d06d1624bc62204a71644e2e498b3 100644 (file)
@@ -1265,6 +1265,16 @@ config KERNEL_GPIO_CDEV
          for GPIOs. The character device allows userspace to control GPIOs
          using ioctl() operations.
 
+config KERNEL_GPIO_CDEV_V1
+       bool "GPIO character device ABI v1"
+       depends on KERNEL_GPIO_CDEV
+       default n
+       help
+         Say Y here to support version 1 of the GPIO CDEV ABI.
+
+         This ABI version is deprecated.
+         Please use the latest ABI for new developments.
+
 config KERNEL_DEVMEM
        bool "/dev/mem virtual device support"
        help
index 21fe40146840621bed94888ae5e50b366a2b5005..5609064a8ce678c605d4b926d4f8f1d7f91286cf 100644 (file)
@@ -2099,7 +2099,6 @@ CONFIG_GPIOLIB_FASTPATH_LIMIT=512
 # CONFIG_GPIO_BT8XX is not set
 # CONFIG_GPIO_CADENCE is not set
 # CONFIG_GPIO_CASCADE is not set
-# CONFIG_GPIO_CDEV_V1 is not set
 # CONFIG_GPIO_CS5535 is not set
 # CONFIG_GPIO_DWAPB is not set
 # CONFIG_GPIO_EM is not set
index bc3289837a3de41bdd2bc4b6f0de213352d898ec..ff5eb4e63af370d1efceb38e56d27d99c311c68c 100644 (file)
@@ -2181,7 +2181,6 @@ CONFIG_GPIOLIB_FASTPATH_LIMIT=512
 # CONFIG_GPIO_BT8XX is not set
 # CONFIG_GPIO_CADENCE is not set
 # CONFIG_GPIO_CASCADE is not set
-# CONFIG_GPIO_CDEV_V1 is not set
 # CONFIG_GPIO_CS5535 is not set
 # CONFIG_GPIO_DWAPB is not set
 # CONFIG_GPIO_EM is not set