Skip to content

Commit 19a5a8a

Browse files
committed
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>
1 parent 8abd5ba commit 19a5a8a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/iio/buffer/industrialio-buffer-cb.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/slab.h>
1111
#include <linux/err.h>
1212
#include <linux/export.h>
13+
#include <linux/iio/iio.h>
1314
#include <linux/iio/buffer.h>
1415
#include <linux/iio/consumer.h>
1516

‎drivers/iio/buffer/kfifo_buf.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <linux/workqueue.h>
66
#include <linux/kfifo.h>
77
#include <linux/mutex.h>
8+
#include <linux/iio/iio.h>
89
#include <linux/iio/buffer.h>
910
#include <linux/iio/kfifo_buf.h>
1011
#include <linux/sched.h>

0 commit comments

Comments
 (0)