From: Andreas Klinger Date: Thu, 1 Feb 2018 20:49:24 +0000 (+0100) Subject: iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b985a6e8d4da148a320caf139ea9e8de8071a77;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined commit 511051d509ec54642dd6d30fdf2caa33c23619cc upstream. Functions for triggered buffer support are needed by this module. If they are not defined accidentally by another driver, there's an error thrown out while linking. Add a select of IIO_BUFFER and IIO_TRIGGERED_BUFFER in the Kconfig file. Signed-off-by: Andreas Klinger Fixes: a83195937151 ("iio: srf08: add triggered buffer support") Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index ae070950f920..c03de24d3c51 100644 --- a/drivers/iio/proximity/Kconfig +++ b/drivers/iio/proximity/Kconfig @@ -58,6 +58,8 @@ config SX9500 config SRF08 tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor" + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER depends on I2C help Say Y here to build a driver for Devantech SRF02/SRF08/SRF10