]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: vt8500: Enable compile testing
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 10 Apr 2026 13:04:58 +0000 (15:04 +0200)
committerLinus Walleij <linusw@kernel.org>
Tue, 28 Apr 2026 09:09:41 +0000 (11:09 +0200)
Enable compile testing for Realtek pin controller drivers for increased
build and static checkers coverage.  PINCTRL_WMT uses
gpiochip_get_data(), thus needs GPIOLIB.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Makefile
drivers/pinctrl/vt8500/Kconfig

index 9320ffae5f31882811c4edf76fbb9857b4b13ff7..78135ee963db98aa7aaa915524ca0ee9c547bc4a 100644 (file)
@@ -97,4 +97,4 @@ obj-y                         += tegra/
 obj-y                          += ti/
 obj-$(CONFIG_PINCTRL_UNIPHIER) += uniphier/
 obj-$(CONFIG_PINCTRL_VISCONTI) += visconti/
-obj-$(CONFIG_ARCH_VT8500)      += vt8500/
+obj-$(CONFIG_PINCTRL_WMT)      += vt8500/
index 2ca00b54b7a810b30e94733e2d3dbf1b68027b30..1a40c153a82a24748da8552c5b45a9cbae1f37de 100644 (file)
@@ -3,16 +3,17 @@
 # VIA/Wondermedia PINCTRL drivers
 #
 
-if ARCH_VT8500
+if ARCH_VT8500 || COMPILE_TEST
 
 config PINCTRL_WMT
        bool
        select PINMUX
        select GENERIC_PINCONF
+       select GPIOLIB
 
 config PINCTRL_VT8500
        bool "VIA VT8500 pin controller driver"
-       depends on ARCH_WM8505
+       depends on ARCH_WM8505 || COMPILE_TEST
        select PINCTRL_WMT
        help
          Say yes here to support the gpio/pin control module on
@@ -20,7 +21,7 @@ config PINCTRL_VT8500
 
 config PINCTRL_WM8505
        bool "Wondermedia WM8505 pin controller driver"
-       depends on ARCH_WM8505
+       depends on ARCH_WM8505 || COMPILE_TEST
        select PINCTRL_WMT
        help
          Say yes here to support the gpio/pin control module on
@@ -28,7 +29,7 @@ config PINCTRL_WM8505
 
 config PINCTRL_WM8650
        bool "Wondermedia WM8650 pin controller driver"
-       depends on ARCH_WM8505
+       depends on ARCH_WM8505 || COMPILE_TEST
        select PINCTRL_WMT
        help
          Say yes here to support the gpio/pin control module on
@@ -36,7 +37,7 @@ config PINCTRL_WM8650
 
 config PINCTRL_WM8750
        bool "Wondermedia WM8750 pin controller driver"
-       depends on ARCH_WM8750
+       depends on ARCH_WM8750 || COMPILE_TEST
        select PINCTRL_WMT
        help
          Say yes here to support the gpio/pin control module on
@@ -44,7 +45,7 @@ config PINCTRL_WM8750
 
 config PINCTRL_WM8850
        bool "Wondermedia WM8850 pin controller driver"
-       depends on ARCH_WM8850
+       depends on ARCH_WM8850 || COMPILE_TEST
        select PINCTRL_WMT
        help
          Say yes here to support the gpio/pin control module on