Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141601
b: refs/heads/master
c: d438a17
h: refs/heads/master
i:
  141599: 4c0925b
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent a4d3d21 commit 08a6119
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 68b08cdad78c79fc87df52f8c8d4adf60ec5d7fc
refs/heads/master: d438a1795754030b9b389d7a64981907a1869dc7
10 changes: 6 additions & 4 deletions trunk/drivers/staging/comedi/drivers/dt2801.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,22 @@ static const struct comedi_lrange range_dt2801_ai_pgl_unipolar = { 4, {
}
};

typedef struct {
struct dt2801_board {

const char *name;
int boardcode;
int ad_diff;
int ad_chan;
int adbits;
int adrangetype;
int dabits;
} boardtype_t;
};


/* Typeid's for the different boards of the DT2801-series
(taken from the test-software, that comes with the board)
*/
static const boardtype_t boardtypes[] = {
static const struct dt2801_board boardtypes[] = {
{
name: "dt2801",
boardcode:0x09,
Expand Down Expand Up @@ -216,7 +218,7 @@ static const boardtype_t boardtypes[] = {
};

#define n_boardtypes ((sizeof(boardtypes))/(sizeof(boardtypes[0])))
#define boardtype (*(const boardtype_t *)dev->board_ptr)
#define boardtype (*(const struct dt2801_board *)dev->board_ptr)

typedef struct {
const struct comedi_lrange *dac_range_types[2];
Expand Down

0 comments on commit 08a6119

Please sign in to comment.