Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141606
b: refs/heads/master
c: c14e920
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent a5c1f79 commit 89478da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 0b011a6f40dfdda0e33cf5b38ce9ffb6fd7a825b
refs/heads/master: c14e9208359c615f2e565277a607237635a1e413
12 changes: 7 additions & 5 deletions trunk/drivers/staging/comedi/drivers/dt3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ static const struct comedi_lrange range_dt3000_ai_pgl = { 4, {
}
};

typedef struct {
struct dt3k_boardtype {

const char *name;
unsigned int device_id;
int adchan;
Expand All @@ -90,9 +91,10 @@ typedef struct {
const struct comedi_lrange *adrange;
int dachan;
int dabits;
} dt3k_boardtype;
};


static const dt3k_boardtype dt3k_boardtypes[] = {
static const struct dt3k_boardtype dt3k_boardtypes[] = {
{name:"dt3001",
device_id:0x22,
adchan: 16,
Expand Down Expand Up @@ -158,8 +160,8 @@ static const dt3k_boardtype dt3k_boardtypes[] = {
},
};

#define n_dt3k_boards sizeof(dt3k_boardtypes)/sizeof(dt3k_boardtype)
#define this_board ((const dt3k_boardtype *)dev->board_ptr)
#define n_dt3k_boards sizeof(dt3k_boardtypes)/sizeof(struct dt3k_boardtype)
#define this_board ((const struct dt3k_boardtype *)dev->board_ptr)

static DEFINE_PCI_DEVICE_TABLE(dt3k_pci_table) = {
{PCI_VENDOR_ID_DT, 0x0022, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
Expand Down

0 comments on commit 89478da

Please sign in to comment.