gpio: tb10x: allow building the module with COMPILE_TEST=y
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 3 Sep 2025 08:00:10 +0000 (10:00 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 8 Sep 2025 07:17:02 +0000 (09:17 +0200)
Increase build coverage by allowing the module to be built with
COMPILE_TEST=y. We need an actual prompt entry in this case so add it.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250903-gpio-mmio-gpio-conv-part3-v1-6-ff346509f408@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/Kconfig

index 0fd5b09..2fb77ef 100644 (file)
@@ -734,7 +734,8 @@ config GPIO_TANGIER
          If built as a module its name will be gpio-tangier.
 
 config GPIO_TB10X
-       bool
+       bool "Abilis Systems TB10x GPIO controller"
+       depends on ARC_PLAT_TB10X || COMPILE_TEST
        select GPIO_GENERIC
        select GENERIC_IRQ_CHIP
        select OF_GPIO