Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141673
b: refs/heads/master
c: 1de6a6f
h: refs/heads/master
i:
  141671: c90b207
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent df9343b commit fe1f4d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 180089a8966e712cb8cb9af1d7401c3e12453d74
refs/heads/master: 1de6a6fd5b672f3a2d8aa6ebe4c85552f091277b
14 changes: 8 additions & 6 deletions trunk/drivers/staging/comedi/drivers/rti800.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,18 @@ static const struct comedi_lrange range_rti800_ai_unipolar = { 4, {
}
};

typedef struct {
struct rti800_board {

const char *name;
int has_ao;
} boardtype;
static const boardtype boardtypes[] = {
};

static const struct rti800_board boardtypes[] = {
{"rti800", 0},
{"rti815", 1},
};

#define this_board ((const boardtype *)dev->board_ptr)
#define this_board ((const struct rti800_board *)dev->board_ptr)

static int rti800_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int rti800_detach(struct comedi_device * dev);
Expand All @@ -136,9 +138,9 @@ static struct comedi_driver driver_rti800 = {
module:THIS_MODULE,
attach:rti800_attach,
detach:rti800_detach,
num_names:sizeof(boardtypes) / sizeof(boardtype),
num_names:sizeof(boardtypes) / sizeof(struct rti800_board),
board_name:&boardtypes[0].name,
offset:sizeof(boardtype),
offset:sizeof(struct rti800_board),
};

COMEDI_INITCLEANUP(driver_rti800);
Expand Down

0 comments on commit fe1f4d5

Please sign in to comment.