Skip to contentSkip to conversation

i2c: cadence: allow COMPILE_TEST

PATCH Applied Wolfram Sang 2 participants 3 messages Feb 12, 2022 – Feb 15, 2022 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: cadence: allow COMPILE_TEST

Driver builds fine with COMPILE_TEST. Enable it for wider test coverage and easier maintenance.

---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +1 -1
index 42da31c1ab70..bad2fadc94a3 100644
@@ -488,7 +488,7 @@ config I2C_BRCMSTB
 
 config I2C_CADENCE
 	tristate "Cadence I2C Controller"
-	depends on ARCH_ZYNQ || ARM64 || XTENSA
+	depends on ARCH_ZYNQ || ARM64 || XTENSA || COMPILE_TEST
 	help
 	  Say yes here to select Cadence I2C Host Controller. This controller is
 	  e.g. used by Xilinx Zynq.
Signature · 1 line
2.30.2
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Wolfram Sang

Driver builds fine with COMPILE_TEST. Enable it for wider test coverage and easier maintenance.

---
  drivers/i2c/busses/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +0 -0
index 42da31c1ab70..bad2fadc94a3 100644

drivers/i2c/busses/Kconfig config I2C_BRCMSTB · line 494

Quoted 8 lines
drivers/i2c/busses/Kconfig +1 -1
@@ -488,7 +488,7 @@ config I2C_BRCMSTB
 
  config I2C_CADENCE
  	tristate "Cadence I2C Controller"
-	depends on ARCH_ZYNQ || ARM64 || XTENSA
+	depends on ARCH_ZYNQ || ARM64 || XTENSA || COMPILE_TEST
  	help
  	  Say yes here to select Cadence I2C Host Controller. This controller is
  	  e.g. used by Xilinx Zynq.

Thanks,
Michal