From: Ian Abbott Date: Fri, 22 May 2015 17:15:57 +0000 (+0100) Subject: staging: comedi: amplc_dio200.h: make self-reliant X-Git-Tag: v4.2-rc1~88^2~543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ea6663284dc47c5afdd26175f0b7f6992f6b627;p=platform%2Fkernel%2Flinux-exynos.git staging: comedi: amplc_dio200.h: make self-reliant The Comedi "amplc_dio200.h" header file included by drivers for Amplicon DIO200 series cards does not compile cleanly when it is the first header included by the ".c" file. It uses `struct comedi_device *` in the parameter lists of some function prototypes, so just declare `struct comedi_device` as an incomplete type. It also uses `bool`, so include to declare it. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/amplc_dio200.h b/drivers/staging/comedi/drivers/amplc_dio200.h index 2dbeea6..53fb86d 100644 --- a/drivers/staging/comedi/drivers/amplc_dio200.h +++ b/drivers/staging/comedi/drivers/amplc_dio200.h @@ -23,6 +23,10 @@ #ifndef AMPLC_DIO200_H_INCLUDED #define AMPLC_DIO200_H_INCLUDED +#include + +struct comedi_device; + /* * Subdevice types. */