]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: accel: kx022a: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 3 Oct 2024 21:04:47 +0000 (23:04 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Oct 2024 15:27:25 +0000 (16:27 +0100)
This driver makes use of triggered buffers, but does not select the
required modules.

Add the missing 'select IIO_BUFFER' and 'select IIO_TRIGGERED_BUFFER'.

Fixes: 7c1d1677b322 ("iio: accel: Support Kionix/ROHM KX022A accelerometer")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/20241003-iio-select-v1-1-67c0385197cd@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig

index 516c1a8e4d566fa93251834ef31f903b1842935a..8c3f7cf55d5fa432a4d4662b184a46cd59c3ebca 100644 (file)
@@ -447,6 +447,8 @@ config IIO_ST_ACCEL_SPI_3AXIS
 
 config IIO_KX022A
        tristate
+       select IIO_BUFFER
+       select IIO_TRIGGERED_BUFFER
 
 config IIO_KX022A_SPI
        tristate "Kionix KX022A tri-axis digital accelerometer SPI interface"