summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2026-01-31 12:19:05 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-01 16:53:35 +0000
commit0713b26190addfa3a774b386c8658952ef9f7faf (patch)
tree37fa696d36edabe4d193057f923fea4e62ce053d
parent62b44ebc1f2c71db3ca2d4737c52e433f6f03038 (diff)
iio: magn: mmc5633: Fix Kconfig for combination of I3C as module and driver builtin
Fix based on similar fix in: commit 83b645ee43f7 ("hwmon: tmp108: fix I3C dependency") Note to keep things simple I'm now requiring I2C. That can probably be relaxed in future, but I want to reduce the test set of builds for now given this is blocker for the main IIO pull request. Fixes: e559c8641460 ("iio: magn: mmc5633: Ensure REGMAP_I2C / I3C not build if I2C / I3C is not.") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202601310904.DueZdiuY-lkp@intel.com/ Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Frank Li <Frank.Li@nxp.com>
-rw-r--r--drivers/iio/magnetometer/Kconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/iio/magnetometer/Kconfig b/drivers/iio/magnetometer/Kconfig
index 2b81b22c9550..9345fb6d5317 100644
--- a/drivers/iio/magnetometer/Kconfig
+++ b/drivers/iio/magnetometer/Kconfig
@@ -141,9 +141,10 @@ config MMC35240
config MMC5633
tristate "MEMSIC MMC5633 3-axis magnetic sensor"
- select REGMAP_I2C if I2C
+ select REGMAP_I2C
select REGMAP_I3C if I3C
- depends on I2C || I3C
+ depends on I2C
+ depends on I3C || !I3C
help
Say yes here to build support for the MEMSIC MMC5633 3-axis
magnetic sensor.