aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/kfifo_buf.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-08-17 16:57:00 +0100
committerJonathan Cameron <jic23@kernel.org>2012-08-27 18:57:56 +0100
commit08d6005c031631429ed307a28503e00e3970c203 (patch)
treebdfe514e6717831de7f31461cd28976ad5c85bfc /include/linux/iio/kfifo_buf.h
parentiio:consumer.h: Fix include guard (diff)
downloadlinux-dev-08d6005c031631429ed307a28503e00e3970c203.tar.xz
linux-dev-08d6005c031631429ed307a28503e00e3970c203.zip
iio: Add missing include guards to headers
Add include guards to the IIO headers where they are missing. This avoids compile errors due to redefined types if a file is included more than once. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/kfifo_buf.h')
-rw-r--r--include/linux/iio/kfifo_buf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iio/kfifo_buf.h b/include/linux/iio/kfifo_buf.h
index 014d5a13b32b..25eeac762e84 100644
--- a/include/linux/iio/kfifo_buf.h
+++ b/include/linux/iio/kfifo_buf.h
@@ -1,3 +1,5 @@
+#ifndef __LINUX_IIO_KFIFO_BUF_H__
+#define __LINUX_IIO_KFIFO_BUF_H__
#include <linux/kfifo.h>
#include <linux/iio/iio.h>
@@ -6,3 +8,4 @@
struct iio_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
void iio_kfifo_free(struct iio_buffer *r);
+#endif