[PATCH v3 04/18] gpiolib: add build option for CDEV v1 ABI
From: Kent Gibson
Date: Sun Aug 09 2020 - 09:26:25 EST
Add a build option to allow the removal of the CDEV v1 ABI.
Suggested-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx>
This patch is before the v2 implementation, and is non-functional until
that patch, as some parts of that patch would be written slightly
differently if removing v1 was not considered.
Adding this patch after that would necessitate revisiting the v2 changes,
so this ordering results in two simpler patches.
drivers/gpio/Kconfig | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 8e409b9c33dc..0c62e35cf3a6 100644
@@ -82,6 +82,18 @@ config GPIO_CDEV
If unsure, say Y.
+ bool "Support GPIO ABI Version 1"
+ default y
+ depends on GPIO_CDEV
+ Say Y here to support version 1 of the GPIO CDEV ABI.
+ This ABI version is deprecated and will be removed in the future.
+ Please use the latest ABI for new developments.
+ If unsure, say Y.
depends on HAS_IOMEM # Only for IOMEM drivers