Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 1b985a6

Browse files
it-klingergregkh
authored andcommitted
iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined
commit 511051d 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 <[email protected]> Fixes: a831959 ("iio: srf08: add triggered buffer support") Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f4f94e9 commit 1b985a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/iio/proximity/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ config SX9500
5858

5959
config SRF08
6060
tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor"
61+
select IIO_BUFFER
62+
select IIO_TRIGGERED_BUFFER
6163
depends on I2C
6264
help
6365
Say Y here to build a driver for Devantech SRF02/SRF08/SRF10

0 commit comments

Comments
 (0)