[PATCH 21/21] gpiolib: turn off legacy interface by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




From: Arnd Bergmann <arnd@xxxxxxxx>
All users of the legacy interface now select CONFIG_GPIOLIB_LEGACY,
so it can be turned off by default.
Allow turning it on manually for compile testing, in order to keep
the build coverage of the legacy drivers.
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
---
 drivers/gpio/Kconfig | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index e43abb322fa6..2b57ba776c13 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -12,10 +12,17 @@ menuconfig GPIOLIB
 
 	 If unsure, say N.
 
+if GPIOLIB
+
 config GPIOLIB_LEGACY
-	def_bool y
+	bool "Legacy GPIO interfaces" if COMPILE_TEST
+	help
+	 There are a few legacy platforms that use the traditional GPIO
+	 number based interfaces instead of GPIO descriptors.
+	 Say Y here to enable build testing drivers that are specific
+	 to those platforms.
 
-if GPIOLIB
+	 If unsure, say N.
 
 config GPIOLIB_FASTPATH_LIMIT
 	int "Maximum number of GPIOs for fast path"
-- 
2.39.5

[Index of Archives] [Linux SPI] [Linux Kernel] [Linux ARM (vger)] [Linux ARM MSM] [Linux Omap] [Linux Arm] [Linux Tegra] [Fedora ARM] [Linux for Samsung SOC] [eCos] [Linux Fastboot] [Gcc Help] [Git] [DCCP] [IETF Announce] [Security] [Linux MIPS] [Yosemite Campsites]

(追記) (追記ここまで)
Powered by Linux

AltStyle によって変換されたページ (->オリジナル) /