[PATCH 3/3] pinctrl: pic32: allow driver to be compiled with COMPILE_TEST
From: Brian Masney
Date: Sun Feb 22 2026 - 18:34:51 EST
This driver currently only supports builds against a PIC32 target. Now
that commit b8694faa1a0f ("pinctrl: pic32: update include to use pic32.h
from platform_data") is merged, it's possible to compile this driver on
other architectures.
To avoid future breakage of this driver in the future, let's update the
Kconfig so that it can be built with COMPILE_TEST enabled on all
architectures.
Signed-off-by: Brian Masney <bmasney@xxxxxxxxxx>
---
drivers/pinctrl/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index afecd9407f5354f5b92223f8cd80d2f7a08f8e7d..1965d4fb461d93cb486e80864cee61fc5acc9ab4 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -478,7 +478,7 @@ config PINCTRL_PEF2256
config PINCTRL_PIC32
bool "Microchip PIC32 pin controller driver"
depends on OF
- depends on MACH_PIC32
+ depends on MACH_PIC32 || COMPILE_TEST
select PINMUX
select GENERIC_PINCONF
select GPIOLIB_IRQCHIP
--
2.53.0