diff options
author | Ian Abbott | 2013-04-04 15:59:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2013-04-05 23:33:19 +0200 |
commit | eda56825d582901b6a1c36fb8d754a3ebee0388c (patch) | |
tree | 65f2a6b5259a7666e42130f292e972c8edc92153 /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: change comedi_file_info_table_lock to mutex (diff) | |
download | kernel-qcow2-linux-eda56825d582901b6a1c36fb8d754a3ebee0388c.tar.gz kernel-qcow2-linux-eda56825d582901b6a1c36fb8d754a3ebee0388c.tar.xz kernel-qcow2-linux-eda56825d582901b6a1c36fb8d754a3ebee0388c.zip |
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>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 873860ff8bc1..e69e9d453433 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -49,6 +49,9 @@ #include "comedi_internal.h" +#define COMEDI_NUM_MINORS 0x100 +#define COMEDI_FIRST_SUBDEVICE_MINOR COMEDI_NUM_BOARD_MINORS + #ifdef CONFIG_COMEDI_DEBUG int comedi_debug; EXPORT_SYMBOL(comedi_debug); |