WSL2-Linux-Kernel/drivers/iio/imu/st_lsm6dsx
Vladimir Oltean c9c1d6d820 iio: imu: st_lsm6dsx: fix build when CONFIG_IIO_TRIGGERED_BUFFER=m
The following kernel linkage error:

st_lsm6dsx_core.o: in function `st_lsm6dsx_sw_buffers_setup':
st_lsm6dsx_core.c:2578: undefined reference to `devm_iio_triggered_buffer_setup_ext'

is caused by the fact that the object owning devm_iio_triggered_buffer_setup_ext()
(drivers/iio/buffer/industrialio-triggered-buffer.o) is allowed to be
built as module when its user (drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c)
is built-in.

The st_lsm6dsx driver already has a "select IIO_BUFFER", so add another
select for IIO_TRIGGERED_BUFFER, to make that option follow what is set
for the st_lsm6dsx driver. This is similar to what other iio drivers do.

Fixes: 2cfb2180c3 ("iio: imu: st_lsm6dsx: introduce sw trigger support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230103130348.1733467-1-vladimir.oltean@nxp.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-01-08 12:14:45 +00:00
..
Kconfig iio: imu: st_lsm6dsx: fix build when CONFIG_IIO_TRIGGERED_BUFFER=m 2023-01-08 12:14:45 +00:00
Makefile
st_lsm6dsx.h iio: imu: st_lsm6dsx: add support to ISM330IS 2022-11-24 19:23:23 +00:00
st_lsm6dsx_buffer.c iio: imu: st_lsm6dsx: add support to LSM6DSV 2022-11-23 19:44:04 +00:00
st_lsm6dsx_core.c iio: imu: st_lsm6dsx: add support to ISM330IS 2022-11-24 19:23:23 +00:00
st_lsm6dsx_i2c.c iio: imu: st_lsm6dsx: add support to ISM330IS 2022-11-24 19:23:23 +00:00
st_lsm6dsx_i3c.c iio: imu: lsm6dsx: Move exported symbols to the IIO_LSM6DSX namespace 2022-06-15 22:07:09 +01:00
st_lsm6dsx_shub.c iio: imu: st_lsm6dsx: introduce sw trigger support 2022-11-23 19:44:04 +00:00
st_lsm6dsx_spi.c iio: imu: st_lsm6dsx: add support to ISM330IS 2022-11-24 19:23:23 +00:00