iio:buffer.h include pushdown into buffer implementations
authorJonathan Cameron <jic23@kernel.org>
Mon, 2 Jan 2017 19:28:31 +0000 (19:28 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 10 Jan 2017 19:54:53 +0000 (19:54 +0000)
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>
drivers/iio/buffer/industrialio-buffer-cb.c
drivers/iio/buffer/kfifo_buf.c

index b8f550e47d3da86119038d6e8fb4b32604b57ca7..79fb2f9de7594589168c29ba5fb623fbb9d26ed0 100644 (file)
@@ -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>
 
index c035ed1d5ee15ee845778503d93adcc02af22445..a47118e7db6f94314b8a38ad51b6ae82d0401ffd 100644 (file)
@@ -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>