[PATCH] i2c: ibm_iic: Enable compile testing

Rosen Penev posted 1 patch 1 week ago
drivers/i2c/busses/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] i2c: ibm_iic: Enable compile testing
Posted by Rosen Penev 1 week ago
Allow the IBM PPC 4xx I2C controller driver to be built when
compile testing on PowerPC.

Keep the real hardware dependency on PPC 4xx platforms, while
extending build coverage through COMPILE_TEST.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 5648d4957872..c2d378e9a1b4 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -730,7 +730,7 @@ config I2C_HISI
 
 config I2C_IBM_IIC
 	tristate "IBM PPC 4xx on-chip I2C interface"
-	depends on 4xx
+	depends on 4xx || (PPC && COMPILE_TEST)
 	help
 	  Say Y here if you want to use IIC peripheral found on
 	  embedded IBM PPC 4xx based systems.
-- 
2.54.0