Skip to content

Commit 4cb8184

Browse files
superm1jic23
authored andcommitted
iio: accel: bma400: Fix a compilation problem
The kernel fails when compiling without `CONFIG_REGMAP_I2C` but with `CONFIG_BMA400`. ``` ld: drivers/iio/accel/bma400_i2c.o: in function `bma400_i2c_probe': bma400_i2c.c:(.text+0x23): undefined reference to `__devm_regmap_init_i2c' ``` Link: https://download.01.org/0day-ci/archive/20240131/202401311634.FE5CBVwe-lkp@intel.com/config Fixes: 465c811 ("iio: accel: Add driver for the BMA400") Fixes: 9bea106 ("iio: accel: bma400: add support for bma400 spi") Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://lore.kernel.org/r/20240131225246.14169-1-mario.limonciello@amd.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 862cf85 commit 4cb8184

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/accel/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ config BMA400
219219

220220
config BMA400_I2C
221221
tristate
222+
select REGMAP_I2C
222223
depends on BMA400
223224

224225
config BMA400_SPI
225226
tristate
227+
select REGMAP_SPI
226228
depends on BMA400
227229

228230
config BMC150_ACCEL

0 commit comments

Comments
 (0)