mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
staging: comedi: move COMEDI_NUM_MINORS and COMEDI_FIRST_SUBDEVICE_MINOR
The macro definitions `COMEDI_NUM_MINORS` and `COMEDI_FIRST_SUBDEVICE_MINOR` are only used in "comedi_fops.c" so move them to there from "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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
da619f5575
commit
eda56825d5
@@ -49,6 +49,9 @@
|
|||||||
|
|
||||||
#include "comedi_internal.h"
|
#include "comedi_internal.h"
|
||||||
|
|
||||||
|
#define COMEDI_NUM_MINORS 0x100
|
||||||
|
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
|
||||||
|
|
||||||
#ifdef CONFIG_COMEDI_DEBUG
|
#ifdef CONFIG_COMEDI_DEBUG
|
||||||
int comedi_debug;
|
int comedi_debug;
|
||||||
EXPORT_SYMBOL(comedi_debug);
|
EXPORT_SYMBOL(comedi_debug);
|
||||||
|
|||||||
@@ -53,9 +53,7 @@
|
|||||||
COMEDI_MINORVERSION, COMEDI_MICROVERSION)
|
COMEDI_MINORVERSION, COMEDI_MICROVERSION)
|
||||||
#define COMEDI_RELEASE VERSION
|
#define COMEDI_RELEASE VERSION
|
||||||
|
|
||||||
#define COMEDI_NUM_MINORS 0x100
|
|
||||||
#define COMEDI_NUM_BOARD_MINORS 0x30
|
#define COMEDI_NUM_BOARD_MINORS 0x30
|
||||||
#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS
|
|
||||||
|
|
||||||
struct comedi_subdevice {
|
struct comedi_subdevice {
|
||||||
struct comedi_device *device;
|
struct comedi_device *device;
|
||||||
|
|||||||
Reference in New Issue
Block a user