]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: mlxbf: Allow build with COMPILE_TEST
authorAndi Shyti <andi.shyti@kernel.org>
Mon, 5 May 2025 21:58:54 +0000 (23:58 +0200)
committerAndi Shyti <andi@smida.it>
Fri, 23 May 2025 08:02:27 +0000 (10:02 +0200)
Extend the Kconfig dependency to include COMPILE_TEST so the
Mellanox BlueField I2C driver can be built on non-ARM64 platforms
for compile testing purposes.

Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Cc: Khalil Blaiech <kblaiech@nvidia.com>
Cc: Asmaa Mnebhi <asmaa@nvidia.com>
Link: https://lore.kernel.org/r/20250505215854.2896383-1-andi.shyti@kernel.org
drivers/i2c/busses/Kconfig

index 827b3dc3aa814c93a69e6177c10c78fb9fb2ee13..3be623735ca8af2d9356008c00931bc69f92ec7c 100644 (file)
@@ -856,7 +856,7 @@ config I2C_LS2X
 
 config I2C_MLXBF
         tristate "Mellanox BlueField I2C controller"
-        depends on MELLANOX_PLATFORM && ARM64
+        depends on (MELLANOX_PLATFORM && ARM64) || COMPILE_TEST
        depends on ACPI
        select I2C_SLAVE
         help