From: Arnd Bergmann <arnd@xxxxxxxx> A few old machines have not been converted away from the old-style gpiolib interfaces. Make these select the new CONFIG_GPIOLIB_LEGACY symbol so the code still works where it is needed but can be left out otherwise. Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> --- drivers/input/misc/Kconfig | 3 +++ drivers/platform/x86/Kconfig | 3 +++ drivers/platform/x86/x86-android-tablets/Kconfig | 1 + 3 files changed, 7 insertions(+) diff --git a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig index 0fb21c99a5e3..681d4123ef2b 100644 --- a/drivers/input/misc/Kconfig +++ b/drivers/input/misc/Kconfig @@ -860,6 +860,9 @@ config INPUT_IDEAPAD_SLIDEBAR config INPUT_SOC_BUTTON_ARRAY tristate "Windows-compatible SoC Button Array" depends on KEYBOARD_GPIO && ACPI + depends on X86 + depends on GPIOLIB + select GPIOLIB_LEGACY help Say Y here if you have a SoC-based tablet that originally runs Windows 8 or a Microsoft Surface Book 2, Pro 5, Laptop 1 or later. diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 6d238e120dce..979a2fce8fc1 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -309,6 +309,7 @@ config MERAKI_MX100 depends on GPIOLIB depends on GPIO_ICH depends on LEDS_CLASS + select GPIOLIB_LEGACY select LEDS_GPIO help This driver provides support for the front button and LEDs on @@ -564,6 +565,7 @@ config PCENGINES_APU2 depends on INPUT && INPUT_KEYBOARD && GPIOLIB depends on LEDS_CLASS select GPIO_AMD_FCH + select GPIOLIB_LEGACY select KEYBOARD_GPIO_POLLED select LEDS_GPIO help @@ -591,6 +593,7 @@ config PORTWELL_EC config BARCO_P50_GPIO tristate "Barco P50 GPIO driver for identify LED/button" depends on GPIOLIB + select GPIOLIB_LEGACY help This driver provides access to the GPIOs for the identify button and led present on Barco P50 board. diff --git a/drivers/platform/x86/x86-android-tablets/Kconfig b/drivers/platform/x86/x86-android-tablets/Kconfig index 193da15ee01c..54fa6112c9ea 100644 --- a/drivers/platform/x86/x86-android-tablets/Kconfig +++ b/drivers/platform/x86/x86-android-tablets/Kconfig @@ -8,6 +8,7 @@ config X86_ANDROID_TABLETS depends on I2C && SPI && SERIAL_DEV_BUS depends on GPIOLIB && PMIC_OPREGION depends on ACPI && EFI && PCI + select GPIOLIB_LEGACY select NEW_LEDS select LEDS_CLASS select POWER_SUPPLY -- 2.39.5