From: Jonathan Cameron Date: Fri, 13 Apr 2012 09:24:20 +0000 (+0100) Subject: staging:iio:iio_core.h make less dependent on other included headers X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=ef97d4217389409f3c72b85dacd4be4b1bcef413;p=linux-edison.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/iio_core.h b/drivers/staging/iio/iio_core.h index c9dfcba0bac..f652e6ae5a3 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 +#include + +struct iio_chan_spec; +struct iio_dev; + int __iio_add_chan_devattr(const char *postfix, struct iio_chan_spec const *chan,