Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <Frank.Li@nxp.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

+2 -2
+2 -2
drivers/iio/magnetometer/Kconfig
··· 141 141 142 142 config MMC5633 143 143 tristate "MEMSIC MMC5633 3-axis magnetic sensor" 144 - select REGMAP_I2C 145 - select REGMAP_I3C 144 + select REGMAP_I2C if I2C 145 + select REGMAP_I3C if I3C 146 146 depends on I2C || I3C 147 147 help 148 148 Say yes here to build support for the MEMSIC MMC5633 3-axis