gpio: ich: enable building with COMPILE_TEST=y
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 7 Apr 2025 07:13:20 +0000 (09:13 +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 module 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/20250407-gpiochip-set-rv-gpio-part1-v1-11-78399683ca38@linaro.org
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/Kconfig

index 12baf7805d7eed7dcea69dc2cd6f1b6a858dd549..c4f7cc024efbe9bb85227edb1b7789556443c8d3 100644 (file)
@@ -380,8 +380,7 @@ config GPIO_HLWD
 
 config GPIO_ICH
        tristate "Intel ICH GPIO"
-       depends on X86
-       depends on LPC_ICH
+       depends on (X86 && LPC_ICH) || COMPILE_TEST
        help
          Say yes here to support the GPIO functionality of a number of Intel
          ICH-based chipsets.  Currently supported devices: ICH6, ICH7, ICH8