summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-05-22 18:15:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-31 10:05:26 +0900
commit8ea6663284dc47c5afdd26175f0b7f6992f6b627 (patch)
treed88eb0ae75a717bb412c7797394b6ead62f8990c
parentd94e5c635289e29d1f0f3dd536f07a84378b702c (diff)
downloadop-kernel-dev-8ea6663284dc47c5afdd26175f0b7f6992f6b627.zip
op-kernel-dev-8ea6663284dc47c5afdd26175f0b7f6992f6b627.tar.gz
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 <linux/types.h> to declare it. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/amplc_dio200.h4
1 files changed, 4 insertions, 0 deletions
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 <linux/types.h>
+
+struct comedi_device;
+
/*
* Subdevice types.
*/
OpenPOWER on IntegriCloud