Skip to content

Commit 0713b26

Browse files
committed
iio: magn: mmc5633: Fix Kconfig for combination of I3C as module and driver builtin
Fix based on similar fix in: commit 83b645e ("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: e559c86 ("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>
1 parent 62b44eb commit 0713b26

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/iio/magnetometer/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ config MMC35240
141141

142142
config MMC5633
143143
tristate "MEMSIC MMC5633 3-axis magnetic sensor"
144-
select REGMAP_I2C if I2C
144+
select REGMAP_I2C
145145
select REGMAP_I3C if I3C
146-
depends on I2C || I3C
146+
depends on I2C
147+
depends on I3C || !I3C
147148
help
148149
Say yes here to build support for the MEMSIC MMC5633 3-axis
149150
magnetic sensor.

0 commit comments

Comments
 (0)