]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: realtek: Enable compile testing
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 10 Apr 2026 13:04:56 +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_RTD uses
pinconf_generic_dt_node_to_map(), thus needs OF.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Yu-Chun Lin <eleanor.lin@realtek.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Makefile
drivers/pinctrl/realtek/Kconfig

index 9d33fa28a0968ace380d41fcda3c8f309d2579b4..b054cfb993488287fd82ec265d8ee468a956665e 100644 (file)
@@ -82,7 +82,7 @@ obj-y                         += nuvoton/
 obj-y                          += nxp/
 obj-$(CONFIG_PINCTRL_PXA)      += pxa/
 obj-y                          += qcom/
-obj-$(CONFIG_ARCH_REALTEK)      += realtek/
+obj-$(CONFIG_PINCTRL_RTD)      += realtek/
 obj-$(CONFIG_PINCTRL_RENESAS)  += renesas/
 obj-$(CONFIG_PINCTRL_SAMSUNG)  += samsung/
 obj-y                          += sophgo/
index 054e85db99e7cdaae88a1aef9fc952db02978be3..a156c4ef556efca286032cf9e3e03f292cc50fc1 100644 (file)
@@ -2,8 +2,8 @@
 
 config PINCTRL_RTD
        tristate "Realtek DHC core pin controller driver"
-       depends on ARCH_REALTEK
-       default y
+       depends on ARCH_REALTEK || (COMPILE_TEST && OF)
+       default ARCH_REALTEK
        select PINMUX
        select GENERIC_PINCONF
        select REGMAP_MMIO
@@ -11,22 +11,22 @@ config PINCTRL_RTD
 config PINCTRL_RTD1619B
        tristate "Realtek DHC 1619B pin controller driver"
        depends on PINCTRL_RTD
-       default y
+       default ARCH_REALTEK
 
 config PINCTRL_RTD1319D
        tristate "Realtek DHC 1319D pin controller driver"
        depends on PINCTRL_RTD
-       default y
+       default ARCH_REALTEK
 
 config PINCTRL_RTD1315E
        tristate "Realtek DHC 1315E pin controller driver"
        depends on PINCTRL_RTD
-       default y
+       default ARCH_REALTEK
 
 config PINCTRL_RTD1625
        tristate "Realtek DHC 1625 pin controller driver"
        depends on PINCTRL_RTD
-       default y
+       default ARCH_REALTEK
        help
          This driver enables support for the pin controller on the Realtek
          RTD1625 SoCs.