gpio: zynq: enable building the modules with COMPILE_TEST=y
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 8 Apr 2025 12:59:01 +0000 (14:59 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 17 Apr 2025 11:58:55 +0000 (13:58 +0200)
Extend the build coverage by allowing to build the modules with
COMPILE_TEST enabled.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250408-gpio-compile-test-v1-1-140e108e9392@linaro.org
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/Kconfig

index c4f7cc024efbe9bb85227edb1b7789556443c8d3..592bb1f624c0120ecef03114c0285a2ee19c168c 100644 (file)
@@ -841,14 +841,14 @@ config GPIO_ZEVIO
 
 config GPIO_ZYNQ
        tristate "Xilinx Zynq GPIO support"
-       depends on ARCH_ZYNQ || ARCH_ZYNQMP
+       depends on ARCH_ZYNQ || ARCH_ZYNQMP || COMPILE_TEST
        select GPIOLIB_IRQCHIP
        help
          Say yes here to support Xilinx Zynq GPIO controller.
 
 config GPIO_ZYNQMP_MODEPIN
        tristate "ZynqMP ps-mode pin GPIO configuration driver"
-       depends on ZYNQMP_FIRMWARE
+       depends on ZYNQMP_FIRMWARE || COMPILE_TEST
        default ZYNQMP_FIRMWARE
        help
          Say yes here to support the ZynqMP ps-mode pin GPIO configuration