Skip to content

Commit 511051d

Browse files
it-klingerjic23
authored andcommitted
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 <[email protected]> Fixes: a831959 ("iio: srf08: add triggered buffer support") Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 7d2b8e6 commit 511051d

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
@@ -68,6 +68,8 @@ config SX9500
6868

6969
config SRF08
7070
tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor"
71+
select IIO_BUFFER
72+
select IIO_TRIGGERED_BUFFER
7173
depends on I2C
7274
help
7375
Say Y here to build a driver for Devantech SRF02/SRF08/SRF10

0 commit comments

Comments
 (0)