Skip to contentSkip to conversation

staging:iio:iio_core.h make less dependent on other included headers

PATCH New Jonathan Cameron 1 participant 1 message Feb 15, 2012

Subsystems (3)
lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/iio/iio_core.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/staging/iio/iio_core.h +6 -0
index c9dfcba..f652e6a 100644
@@ -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,
Signature · 1 line
1.7.8.4