[PATCH 10/10] gpiolib: turn off legacy interface by default
Arnd Bergmann <[email protected]>
| Newsgroups | gmane.linux.kernel.input,gmane.linux.kernel.gpio,gmane.linux.kernel,gmane.linux.kernel.wireless.general,gmane.linux.ports.arm.omap,gmane.linux.ports.arm.kernel,gmane.linux.ports.mips,gmane.linux.ports.sh.devel,gmane.linux.leds,gmane.linux.network |
|---|---|
| Message-ID | <[email protected]> |
From: Arnd Bergmann <[email protected]> All users of the legacy interface now select CONFIG_GPIOLIB_LEGACY, so it can be turned off by default and only get built on platforms that still have one unconverted driver. Allow turning it on manually for compile testing, in order to keep the build coverage of the legacy drivers in allmodconfig and randconfig. Signed-off-by: Arnd Bergmann <[email protected]> --- drivers/gpio/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) This patch depends on patches 1 through 9 to be applied first. diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 00fcab5d09a4..eec17089eaa6 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -4,7 +4,14 @@ # 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 unsure, say N. config HAVE_SHARED_GPIOS bool -- 2.39.5