Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141599
b: refs/heads/master
c: 98484c1
h: refs/heads/master
i:
  141597: bb69096
  141595: 32ffac2
  141591: 328bc95
  141583: 071c305
  141567: 314dd18
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 8959d30 commit 4c0925b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 39d31e09a0cc299e01b8acb66b60fbcc453b9c8b
refs/heads/master: 98484c1ae621eb784c4b2a7dd6c76a069bad6214
14 changes: 7 additions & 7 deletions trunk/drivers/staging/comedi/drivers/dt282x.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static const struct comedi_lrange range_dt282x_ai_hi_unipolar = { 4, {
}
};

typedef struct {
struct dt282x_board {
const char *name;
int adbits;
int adchan_se;
Expand All @@ -206,9 +206,9 @@ typedef struct {
int ispgl;
int dachan;
int dabits;
} boardtype_t;
};

static const boardtype_t boardtypes[] = {
static const struct dt282x_board boardtypes[] = {
{name:"dt2821",
adbits: 12,
adchan_se:16,
Expand Down Expand Up @@ -337,8 +337,8 @@ static const boardtype_t boardtypes[] = {
},
};

#define n_boardtypes sizeof(boardtypes)/sizeof(boardtype_t)
#define this_board ((const boardtype_t *)dev->board_ptr)
#define n_boardtypes sizeof(boardtypes)/sizeof(struct dt282x_board)
#define this_board ((const struct dt282x_board *)dev->board_ptr)

typedef struct {
int ad_2scomp; /* we have 2's comp jumper set */
Expand Down Expand Up @@ -368,7 +368,7 @@ typedef struct {
} dt282x_private;

#define devpriv ((dt282x_private *)dev->private)
#define boardtype (*(const boardtype_t *)dev->board_ptr)
#define boardtype (*(const struct dt282x_board *)dev->board_ptr)

/*
* Some useless abstractions
Expand Down Expand Up @@ -403,7 +403,7 @@ static struct comedi_driver driver_dt282x = {
detach:dt282x_detach,
board_name:&boardtypes[0].name,
num_names:n_boardtypes,
offset:sizeof(boardtype_t),
offset:sizeof(struct dt282x_board),
};

COMEDI_INITCLEANUP(driver_dt282x);
Expand Down

0 comments on commit 4c0925b

Please sign in to comment.