]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magn: mmc5633: Ensure REGMAP_I2C / I3C not build if I2C / I3C is not.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 19 Jan 2026 21:48:16 +0000 (21:48 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 22 Jan 2026 20:52:12 +0000 (20:52 +0000)
commite559c864146070905ce7bc6da1e9d269232d609b
treefc08a05f7bf343db74ab76baf3039db914c9aee5
parenta02d46be8aec5e3daea8033446f93ea4bab1ed62
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>
drivers/iio/magnetometer/Kconfig