summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2015-05-22 16:21:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-31 10:05:26 +0900
commitd2c9deac56da9a5a56c32c4cb6ec3d6bad25ad84 (patch)
treeb3709455763d514c2eabac67ae6d95c46d645f27
parent7e0b1b60cb0d7d3ae4c22a891e11ceccca17afee (diff)
downloadop-kernel-dev-d2c9deac56da9a5a56c32c4cb6ec3d6bad25ad84.zip
op-kernel-dev-d2c9deac56da9a5a56c32c4cb6ec3d6bad25ad84.tar.gz
staging: comedi: 8255.h: don't include "../comedidev.h"
The Comedi "8255.h" header doesn't use anything from "comedidev.h" apart from `struct comedi_device` and `struct comedi_subdevice`, which are only used to construct corresponding pointer types within the parameter lists of function prototypes. Just declare those structure types incompletely and don't bother including "comedidev.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/8255.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/8255.h b/drivers/staging/comedi/drivers/8255.h
index 934b940..977cfe4 100644
--- a/drivers/staging/comedi/drivers/8255.h
+++ b/drivers/staging/comedi/drivers/8255.h
@@ -19,8 +19,6 @@
#ifndef _8255_H
#define _8255_H
-#include "../comedidev.h"
-
#define I8255_SIZE 0x04
#define I8255_DATA_A_REG 0x00
@@ -35,6 +33,9 @@
#define I8255_CTRL_A_MODE(x) ((x) << 5)
#define I8255_CTRL_CW (1 << 7)
+struct comedi_device;
+struct comedi_subdevice;
+
int subdev_8255_init(struct comedi_device *, struct comedi_subdevice *,
int (*io)(struct comedi_device *,
int, int, int, unsigned long),
OpenPOWER on IntegriCloud