]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: mite.h: remove "../comedi_pci.h" and make self-reliant
authorIan Abbott <abbotti@mev.co.uk>
Fri, 1 May 2015 17:03:59 +0000 (18:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:03 +0000 (09:24 +0200)
commitc95f212de8ff7f5058ab2c1eb60b8e79d341111b
treebbcdc9b01a661588c55400a787b48ca21df35318
parentc0cb606a3456ca956431e7b554c29f0212475e98
staging: comedi: mite.h: remove "../comedi_pci.h" and make self-reliant

"mite.h" relies on a lot of things declared including "../comedi_pci.h",
but doesn't need anything in "../comedi_pci.h" itself.  None of the
Comedi modules that include "mite.h" rely on it to include
"../comedi_pci.h" on their behalf.

Remove the inclusion of "../comedi_pci.h" from "mite.h", and add enough
other includes and (incomplete) `struct` declarations to make it compile
without warnings or errors even when included first in a .c file.

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/mite.h