summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-01-02 14:04:39 +0100
committerJonathan Cameron <jic23@kernel.org>2016-01-04 12:36:19 +0100
commit01cc5235604d61018712c11a14d74230f6a38bf4 (patch)
treee245b1ef61f41c207b18589f686c7609c10f3ec5 /drivers/iio
parentiio-light: Use a signed return type for ltr501_match_samp_freq() (diff)
downloadlinux-01cc5235604d61018712c11a14d74230f6a38bf4.tar.xz
linux-01cc5235604d61018712c11a14d74230f6a38bf4.zip
iio: add IIO_TRIGGER dependency to STK8BA50
Ran into this on UML: drivers/iio/accel/stk8ba50.c: In function ‘stk8ba50_data_rdy_trigger_set_state’: drivers/iio/accel/stk8ba50.c:163:9: error: implicit declaration of function ‘iio_trigger_get_drvdata’ [-Werror=implicit-function-declaration] iio_trigger_get_drvdata() is defined only when IIO_TRIGGER is selected. Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/accel/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
index 969428dd6329..16cc5c691a55 100644
--- a/drivers/iio/accel/Kconfig
+++ b/drivers/iio/accel/Kconfig
@@ -173,6 +173,7 @@ config STK8312
config STK8BA50
tristate "Sensortek STK8BA50 3-Axis Accelerometer Driver"
depends on I2C
+ depends on IIO_TRIGGER
help
Say yes here to get support for the Sensortek STK8BA50 3-axis
accelerometer.