From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152]:56568 "EHLO ppsw-52.csi.cam.ac.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758997Ab2DJURh (ORCPT ); Tue, 10 Apr 2012 16:17:37 -0400 From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: jbrenner@TAOSinc.com, Jonathan Cameron Subject: [PATCH 3/4] staging:iio:iio_core.h make less dependent on other included headers Date: Tue, 10 Apr 2012 21:17:31 +0100 Message-Id: <1334089052-22304-4-git-send-email-jic23@kernel.org> In-Reply-To: <1334089052-22304-1-git-send-email-jic23@kernel.org> References: <1334089052-22304-1-git-send-email-jic23@kernel.org> Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org 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 --- drivers/staging/iio/iio_core.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 +#include + +struct iio_chan_spec; +struct iio_dev; + int __iio_add_chan_devattr(const char *postfix, struct iio_chan_spec const *chan, -- 1.7.9.4