summaryrefslogtreecommitdiff
path: root/drivers/iio/iio_core.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-10-17 00:16:41 +0400
committerMark Brown <broonie@linaro.org>2013-10-17 00:16:41 +0400
commit381bd9517a7e611871694689c67901d189cf6a62 (patch)
tree7f9492cbbb93039ef84722e518e2ca6e8ad0c364 /drivers/iio/iio_core.h
parent01b9e0418689951c6ae4ba3b221bc42f49eb6407 (diff)
parentf6bd03a746271f298aa5bfb6e049b245757efaed (diff)
downloadlinux-381bd9517a7e611871694689c67901d189cf6a62.tar.xz
Merge remote-tracking branch 'spi/topic/trivial' into spi-atmel
Conflicts (trivial overlapping cleanups): drivers/spi/spi-atmel.c
Diffstat (limited to 'drivers/iio/iio_core.h')
-rw-r--r--drivers/iio/iio_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iio/iio_core.h b/drivers/iio/iio_core.h
index 05c1b74502a3..9b32253b824b 100644
--- a/drivers/iio/iio_core.h
+++ b/drivers/iio/iio_core.h
@@ -49,11 +49,15 @@ ssize_t iio_buffer_read_first_n_outer(struct file *filp, char __user *buf,
#define iio_buffer_poll_addr (&iio_buffer_poll)
#define iio_buffer_read_first_n_outer_addr (&iio_buffer_read_first_n_outer)
+void iio_disable_all_buffers(struct iio_dev *indio_dev);
+
#else
#define iio_buffer_poll_addr NULL
#define iio_buffer_read_first_n_outer_addr NULL
+static inline void iio_disable_all_buffers(struct iio_dev *indio_dev) {}
+
#endif
int iio_device_register_eventset(struct iio_dev *indio_dev);