]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: en7523: allow COMPILE_TEST builds
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:59:12 +0000 (17:59 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 20 May 2026 13:24:34 +0000 (15:24 +0200)
The Airoha EN7523 GPIO driver uses generic platform, MMIO, and gpiolib
interfaces.  Allow it to build with COMPILE_TEST so it gets coverage on
non-Airoha platforms.

Tested with:
make LLVM=1 ARCH=loongarch drivers/gpio/gpio-en7523.o

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260519005912.628667-1-rosenp@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/Kconfig

index 4d64ad9df0e0908c7d7aa77e4885eff6b447f357..9ea5c2523fd42bbe3abbfce4e92d6c4e3df74725 100644 (file)
@@ -302,7 +302,7 @@ config GPIO_EM
 
 config GPIO_EN7523
        tristate "Airoha GPIO support"
-       depends on ARCH_AIROHA
+       depends on ARCH_AIROHA || COMPILE_TEST
        default ARCH_AIROHA
        select GPIO_GENERIC
        select GPIOLIB_IRQCHIP