]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 4 Feb 2018 11:13:00 +0000 (11:13 +0000)
commit4473dd8c1d637e985eac0d6bd799d7336c396fa4
tree3d4c96adb5c8e046c1bbd3f4996d44cbc338dc72
parentf40fa1b612f4a9a55dbbfdca967ac9598deb3956
iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined

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: c338ebbe64bf ("iio: srf08: add triggered buffer support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/Kconfig