[PATCH] gpio: en7523: allow COMPILE_TEST builds

Rosen Penev posted 1 patch 6 days, 2 hours ago
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] gpio: en7523: allow COMPILE_TEST builds
Posted by Rosen Penev 6 days, 2 hours ago
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>
---
 drivers/gpio/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 00fcab5d09a4..ba2e8c802093 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -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
-- 
2.54.0
Re: [PATCH] gpio: en7523: allow COMPILE_TEST builds
Posted by Bartosz Golaszewski 4 days, 14 hours ago
On Mon, 18 May 2026 17:59:12 -0700, Rosen Penev wrote:
> 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
> 
> [...]

Applied, thanks!

[1/1] gpio: en7523: allow COMPILE_TEST builds
      https://git.kernel.org/brgl/c/292e7cab58e2ce1f9213a6a326eb314e18756459

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>