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

staging: comedi: remove comedi_fops.h

Move the contents of "comedi_fops.h" into "comedi_internal.h" and delete
"comedi_fops.h". It only contains a couple of external variable
declarations (and #include <linux/types.h>) and one of those isn't even
declared in "comedi_fops.c".  The other one is an external declaration
of a variable used to store a module parameter and some of those are
already externally declared in "comedi_internal.h", so they can keep it
company!
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 97ce84de
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#undef DEBUG #undef DEBUG
#define __NO_VERSION__ #define __NO_VERSION__
#include "comedi_fops.h"
#include "comedi_compat32.h" #include "comedi_compat32.h"
#include <linux/module.h> #include <linux/module.h>
......
#ifndef _COMEDI_FOPS_H
#define _COMEDI_FOPS_H
#include <linux/types.h>
extern bool comedi_autoconfig;
extern struct comedi_driver *comedi_drivers;
#endif /* _COMEDI_FOPS_H */
#ifndef _COMEDI_INTERNAL_H #ifndef _COMEDI_INTERNAL_H
#define _COMEDI_INTERNAL_H #define _COMEDI_INTERNAL_H
#include <linux/types.h>
/* /*
* various internal comedi stuff * various internal comedi stuff
*/ */
...@@ -17,5 +19,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -17,5 +19,7 @@ int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
extern unsigned int comedi_default_buf_size_kb; extern unsigned int comedi_default_buf_size_kb;
extern unsigned int comedi_default_buf_maxsize_kb; extern unsigned int comedi_default_buf_maxsize_kb;
extern bool comedi_autoconfig;
extern struct comedi_driver *comedi_drivers;
#endif /* _COMEDI_INTERNAL_H */ #endif /* _COMEDI_INTERNAL_H */
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#define _GNU_SOURCE #define _GNU_SOURCE
#define __NO_VERSION__ #define __NO_VERSION__
#include "comedi_fops.h"
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define __NO_VERSION__ #define __NO_VERSION__
#include "comedidev.h" #include "comedidev.h"
#include "comedi_fops.h" #include "comedi_internal.h"
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/string.h> #include <linux/string.h>
......
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