Skip to content

Commit

Permalink
staging: comedi: me4000: move struct me4000_board definition
Browse files Browse the repository at this point in the history
Move the struct me4000_board definition from the header to the c file.
It's not used by any other source.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 8, 2012
1 parent 8407593 commit 06b6098
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
13 changes: 13 additions & 0 deletions drivers/staging/comedi/drivers/me4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ broken.
#include "me4000_fw.h"
#endif

struct me4000_board {
const char *name;
unsigned short device_id;
int ao_nchan;
int ao_fifo;
int ai_nchan;
int ai_diff_nchan;
int ai_sh_nchan;
int ex_trig_analog;
int dio_nchan;
int has_counter;
};

static const struct me4000_board me4000_boards[] = {
{
.name = "ME-4650",
Expand Down
17 changes: 0 additions & 17 deletions drivers/staging/comedi/drivers/me4000.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,23 +252,6 @@
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_2 0x1000
#define ME4000_DIO_CTRL_BIT_FIFO_HIGH_3 0x2000

/*=============================================================================
Information about the hardware capabilities
===========================================================================*/

struct me4000_board {
const char *name;
unsigned short device_id;
int ao_nchan;
int ao_fifo;
int ai_nchan;
int ai_diff_nchan;
int ai_sh_nchan;
int ex_trig_analog;
int dio_nchan;
int has_counter;
};

/*=============================================================================
Global board and subdevice information structures
===========================================================================*/
Expand Down

0 comments on commit 06b6098

Please sign in to comment.