Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141665
b: refs/heads/master
c: 42f1884
h: refs/heads/master
i:
  141663: 34b72d8
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 617ee73 commit e89555b
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: 938f185d4eea489ad802554e2faef9c99e377aa5
refs/heads/master: 42f1884d0683d0d0d4b0895aaed02dbed5d8b921
14 changes: 8 additions & 6 deletions trunk/drivers/staging/comedi/drivers/dt2811.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,15 @@ static const struct comedi_lrange range_dt2811_pgl_ai_5_bipolar = { 4, {
#define DT2811_INTENB 0x04
#define DT2811_ADMODE 0x03

typedef struct {
struct dt2811_board {

const char *name;
const struct comedi_lrange *bip_5;
const struct comedi_lrange *bip_2_5;
const struct comedi_lrange *unip_5;
} boardtype;
static const boardtype boardtypes[] = {
};

static const struct dt2811_board boardtypes[] = {
{"dt2811-pgh",
&range_dt2811_pgh_ai_5_bipolar,
&range_dt2811_pgh_ai_2_5_bipolar,
Expand All @@ -210,7 +212,7 @@ static const boardtype boardtypes[] = {
},
};

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

static int dt2811_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int dt2811_detach(struct comedi_device * dev);
Expand All @@ -220,8 +222,8 @@ static struct comedi_driver driver_dt2811 = {
attach:dt2811_attach,
detach:dt2811_detach,
board_name:&boardtypes[0].name,
num_names:sizeof(boardtypes) / sizeof(boardtype),
offset:sizeof(boardtype),
num_names:sizeof(boardtypes) / sizeof(struct dt2811_board),
offset:sizeof(struct dt2811_board),
};

COMEDI_INITCLEANUP(driver_dt2811);
Expand Down

0 comments on commit e89555b

Please sign in to comment.