mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 23:34:00 -04:00
This driver uses IIO triggered buffers so it needs to select them in
Kconfig.
on riscv-32bit:
/opt/crosstool/gcc-13.2.0-nolibc/riscv32-linux/bin/riscv32-linux-ld: drivers/iio/imu/bno055/bno055.o: in function `.L367':
bno055.c:(.text+0x2c96): undefined reference to `devm_iio_triggered_buffer_setup_ext'
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/linux-next/40566b4b-3950-81fe-ff14-871d8c447627@infradead.org/
Fixes: 4aefe1c2bd ("iio: imu: add Bosch Sensortec BNO055 core driver")
Cc: Andrea Merello <andrea.merello@iit.it>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20230903113052.846298-1-jic23@kernel.org
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
28 lines
690 B
Plaintext
28 lines
690 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
config BOSCH_BNO055
|
|
tristate
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
|
|
config BOSCH_BNO055_SERIAL
|
|
tristate "Bosch BNO055 attached via UART"
|
|
depends on SERIAL_DEV_BUS
|
|
select BOSCH_BNO055
|
|
help
|
|
Enable this to support Bosch BNO055 IMUs attached via UART.
|
|
|
|
This driver can also be built as a module. If so, the module will be
|
|
called bno055_sl.
|
|
|
|
config BOSCH_BNO055_I2C
|
|
tristate "Bosch BNO055 attached via I2C bus"
|
|
depends on I2C
|
|
select REGMAP_I2C
|
|
select BOSCH_BNO055
|
|
help
|
|
Enable this to support Bosch BNO055 IMUs attached via I2C bus.
|
|
|
|
This driver can also be built as a module. If so, the module will be
|
|
called bno055_i2c.
|