summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-05-22 18:32:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-31 10:07:17 +0900
commitb727255f01fa519e1bfb047e3eefb9bb74512404 (patch)
tree349e9e9e212552ffb7898a87a3cc268534d675f1
parente57180c85a0b9b471327c69679fb81fd36578897 (diff)
downloadop-kernel-dev-b727255f01fa519e1bfb047e3eefb9bb74512404.zip
op-kernel-dev-b727255f01fa519e1bfb047e3eefb9bb74512404.tar.gz
staging: comedi: comedi_8254.h: make self-reliant
The Comedi "comedi_8254.h" header file is included by various Comedi drivers with timer/counters based on the 8254 chip. The drivers do not compile cleanly if this header file is included first. It uses pointers to the `struct comedi_device`, `struct comedi_subdevice`, and `struct comedi_insn` structures in various function prototypes, so declare those as incomplete types. It use the `bool` type, so include <linux/types.h>. It also uses the `__iomem` tag, but that seems to be taken care of indirectly by including <linux/types.h>. 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/comedi_8254.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_8254.h b/drivers/staging/comedi/drivers/comedi_8254.h
index d89f6d9..f4610ea 100644
--- a/drivers/staging/comedi/drivers/comedi_8254.h
+++ b/drivers/staging/comedi/drivers/comedi_8254.h
@@ -20,6 +20,12 @@
#ifndef _COMEDI_8254_H
#define _COMEDI_8254_H
+#include <linux/types.h>
+
+struct comedi_device;
+struct comedi_insn;
+struct comedi_subdevice;
+
/*
* Common oscillator base values in nanoseconds
*/
OpenPOWER on IntegriCloud