Commit 3a62cdb7 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: comedi_isadma.h: make self-reliant

The Comedi "comedi_isadma.h" header is included by the source for the
"comedi_isadma" helper module and other modules that use it.  It does
not compile cleanly when it is the first header file included.  It uses
the `dma_addr_t` type, so include <linux/types.h> to declare it.  (Also,
that indirectly takes care of the use of `NULL`.)  It uses `struct
comedi_device *` in various function prototypes, so add an incomplete
declaration of `struct comedi_device`.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b727255f
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#ifndef _COMEDI_ISADMA_H #ifndef _COMEDI_ISADMA_H
#define _COMEDI_ISADMA_H #define _COMEDI_ISADMA_H
#include <linux/types.h>
struct comedi_device;
/* /*
* These are used to avoid issues when <asm/dma.h> and the DMA_MODE_ * These are used to avoid issues when <asm/dma.h> and the DMA_MODE_
* defines are not available. * defines are not available.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment