From: Jonathan Cameron Date: Mon, 19 Jan 2026 21:48:16 +0000 (+0000) Subject: iio: magn: mmc5633: Ensure REGMAP_I2C / I3C not build if I2C / I3C is not. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e559c864146070905ce7bc6da1e9d269232d609b;p=thirdparty%2Fkernel%2Flinux.git iio: magn: mmc5633: Ensure REGMAP_I2C / I3C not build if I2C / I3C is not. Fixes the following build warning (and equivalent I2C one) WARNING: unmet direct dependencies detected for REGMAP_I3C Depends on [n]: I3C [=n] Selected by [m]: - MMC5633 [=m] && IIO [=y] && (I2C [=y] || I3C [=n]) Fixes: 6e5f6bf2e3f0 ("iio: magnetometer: Add mmc5633 sensor") Reviewed-by: Frank Li Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig index cfb74a4a0836..2b81b22c9550 100644 --- a/drivers/iio/magnetometer/Kconfig +++ b/drivers/iio/magnetometer/Kconfig @@ -141,8 +141,8 @@ config MMC35240 config MMC5633 tristate "MEMSIC MMC5633 3-axis magnetic sensor" - select REGMAP_I2C - select REGMAP_I3C + select REGMAP_I2C if I2C + select REGMAP_I3C if I3C depends on I2C || I3C help Say yes here to build support for the MEMSIC MMC5633 3-axis