summaryrefslogtreecommitdiffstats
path: root/drivers/iio/buffer
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2017-01-02 19:28:31 +0000
committerJonathan Cameron <jic23@kernel.org>2017-01-10 19:54:53 +0000
commit19a5a8a5dceeaea03aac6883541b4ec9ed42a833 (patch)
treec9a974fa3599cf8fc7adece507bde562361b491d /drivers/iio/buffer
parent8abd5ba53962854c3a1c21d04fa6fdba54cc0ee1 (diff)
downloadlinux-19a5a8a5dceeaea03aac6883541b4ec9ed42a833.tar.gz
linux-19a5a8a5dceeaea03aac6883541b4ec9ed42a833.tar.bz2
linux-19a5a8a5dceeaea03aac6883541b4ec9ed42a833.zip
iio:buffer.h include pushdown into buffer implementations
These were only getting access to the internals of struct iio_dev via the include of iio.h within buffer.h. This should always have been explicitly included by the buffer implementations themselves. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/iio/buffer')
-rw-r--r--drivers/iio/buffer/industrialio-buffer-cb.c1
-rw-r--r--drivers/iio/buffer/kfifo_buf.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/buffer/industrialio-buffer-cb.c b/drivers/iio/buffer/industrialio-buffer-cb.c
index b8f550e47d3d..79fb2f9de759 100644
--- a/drivers/iio/buffer/industrialio-buffer-cb.c
+++ b/drivers/iio/buffer/industrialio-buffer-cb.c
@@ -10,6 +10,7 @@
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/export.h>
+#include <linux/iio/iio.h>
#include <linux/iio/buffer.h>
#include <linux/iio/consumer.h>
diff --git a/drivers/iio/buffer/kfifo_buf.c b/drivers/iio/buffer/kfifo_buf.c
index c035ed1d5ee1..a47118e7db6f 100644
--- a/drivers/iio/buffer/kfifo_buf.c
+++ b/drivers/iio/buffer/kfifo_buf.c
@@ -5,6 +5,7 @@
#include <linux/workqueue.h>
#include <linux/kfifo.h>
#include <linux/mutex.h>
+#include <linux/iio/iio.h>
#include <linux/iio/buffer.h>
#include <linux/iio/kfifo_buf.h>
#include <linux/sched.h>