summaryrefslogtreecommitdiff
path: root/drivers/staging/iio
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-04-13 09:24:20 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-13 17:59:38 (GMT)
commitef97d4217389409f3c72b85dacd4be4b1bcef413 (patch)
tree1fc47299b43466164b9289a3801cd4fe6346ce4e /drivers/staging/iio
parenta7322fc2fa6417a5bc4f0a40e6e79608505416e2 (diff)
downloadlinux-fsl-qoriq-ef97d4217389409f3c72b85dacd4be4b1bcef413.tar.xz
staging:iio:iio_core.h make less dependent on other included headers
There are a lot of pointers to structures used in here that are not declared unless a particular header is included first. Deal with the IIO specific ones by putting in forward declarations and the other ones by including kernel.h and device.h. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r--drivers/staging/iio/iio_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/iio/iio_core.h b/drivers/staging/iio/iio_core.h
index c9dfcba..f652e6a 100644
--- a/drivers/staging/iio/iio_core.h
+++ b/drivers/staging/iio/iio_core.h
@@ -12,6 +12,12 @@
#ifndef _IIO_CORE_H_
#define _IIO_CORE_H_
+#include <linux/kernel.h>
+#include <linux/device.h>
+
+struct iio_chan_spec;
+struct iio_dev;
+
int __iio_add_chan_devattr(const char *postfix,
struct iio_chan_spec const *chan,