iio: add IIO_TRIGGER dependency to STK8BA50
commit01cc5235604d61018712c11a14d74230f6a38bf4
authorVegard Nossum <vegard.nossum@oracle.com>
Sat, 2 Jan 2016 13:04:39 +0000 (2 14:04 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 4 Jan 2016 11:36:19 +0000 (4 11:36 +0000)
treee245b1ef61f41c207b18589f686c7609c10f3ec5
parentc08ae18560aaed50fed306a2e11f36ce70130f65
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>
drivers/iio/accel/Kconfig