iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined
authorAndreas Klinger <ak@it-klinger.de>
Thu, 1 Feb 2018 20:49:24 +0000 (21:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Feb 2018 09:19:40 +0000 (10:19 +0100)
commit1b985a6e8d4da148a320caf139ea9e8de8071a77
tree3e3a8aa326c1143733d02c97134a573c6a5a8ec1
parentf4f94e9baeba909e2bc5902ed2dd033fa8bb74a3
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 <ak@it-klinger.de>
Fixes: a83195937151 ("iio: srf08: add triggered buffer support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/proximity/Kconfig