]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: comedi_8254.h: make self-reliant
authorIan Abbott <abbotti@mev.co.uk>
Fri, 22 May 2015 17:32:31 +0000 (18:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 01:07:17 +0000 (10:07 +0900)
commit76264a5132231631fd977a137e7b06f6ce29426d
tree349e9e9e212552ffb7898a87a3cc268534d675f1
parent1cdfaecc273d8d99872637ee49242a654295ed0d
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>
drivers/staging/comedi/drivers/comedi_8254.h