iio: accel: bma400: Fix a compilation problem
commit 4cb81840d8f29b66d9d05c6d7f360c9560f7e2f4 upstream. 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:465c811f1f
("iio: accel: Add driver for the BMA400") Fixes:9bea106423
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f10423c0e
commit
77ba1a86ef
|
@ -219,10 +219,12 @@ config BMA400
|
||||||
|
|
||||||
config BMA400_I2C
|
config BMA400_I2C
|
||||||
tristate
|
tristate
|
||||||
|
select REGMAP_I2C
|
||||||
depends on BMA400
|
depends on BMA400
|
||||||
|
|
||||||
config BMA400_SPI
|
config BMA400_SPI
|
||||||
tristate
|
tristate
|
||||||
|
select REGMAP_SPI
|
||||||
depends on BMA400
|
depends on BMA400
|
||||||
|
|
||||||
config BMC150_ACCEL
|
config BMC150_ACCEL
|
||||||
|
|
Loading…
Reference in New Issue