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>
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