Skip to content

Commit

Permalink
Staging: comedi: Remove adq12b_board typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 5b5fc21 commit 47c6e95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/comedi/drivers/adq12b.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ static const struct comedi_lrange range_adq12b_ai_unipolar = { 4, {



typedef struct adq12b_board_struct{
struct adq12b_board {
const char *name;
int ai_se_chans;
int ai_diff_chans;
int ai_bits;
int di_chans;
int do_chans;
}adq12b_board;
};

static const adq12b_board adq12b_boards[] = {
static const struct adq12b_board adq12b_boards[] = {
{
name: "adq12b",
ai_se_chans: 16,
Expand All @@ -144,7 +144,7 @@ static const adq12b_board adq12b_boards[] = {
}*/
};

#define thisboard ((const adq12b_board *)dev->board_ptr)
#define thisboard ((const struct adq12b_board *)dev->board_ptr)

typedef struct{
int unipolar; /* option 2 of comedi_config (1 is iobase) */
Expand All @@ -170,8 +170,8 @@ static struct comedi_driver driver_adq12b={
attach: adq12b_attach,
detach: adq12b_detach,
board_name: &adq12b_boards[0].name,
offset: sizeof(adq12b_board),
num_names: sizeof(adq12b_boards) / sizeof(adq12b_board),
offset: sizeof(struct adq12b_board),
num_names: sizeof(adq12b_boards) / sizeof(struct adq12b_board),
};

static int adq12b_ai_rinsn(struct comedi_device *dev,struct comedi_subdevice *s,struct comedi_insn *insn,unsigned int *data);
Expand Down

0 comments on commit 47c6e95

Please sign in to comment.