staging:iio:iio_core.h make less dependent on other included headers
authorJonathan Cameron <jic23@kernel.org>
Fri, 13 Apr 2012 09:24:20 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 17:59:38 +0000 (10:59 -0700)
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>
drivers/staging/iio/iio_core.h

index c9dfcba0bac8d924b90171d6b7dca84afd42c13e..f652e6ae5a35991b20f7be95eb8c2cafa49debf4 100644 (file)
 
 #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,