Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141666
b: refs/heads/master
c: 6445296
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent e89555b commit 4654cd4
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: 42f1884d0683d0d0d4b0895aaed02dbed5d8b921
refs/heads/master: 6445296e9857ff4a3992454eda7ebb63f90cdca9
14 changes: 8 additions & 6 deletions trunk/drivers/staging/comedi/drivers/pcl711.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ static const struct comedi_lrange range_acl8112dg_ai = { 9, {

static const int i8253_osc_base = 500; /* 2 Mhz */

typedef struct {
struct pcl711_board {

const char *name;
int is_pcl711b;
int is_8112;
Expand All @@ -142,17 +143,18 @@ typedef struct {
int n_aochan;
int maxirq;
const struct comedi_lrange *ai_range_type;
} boardtype;
};


static const boardtype boardtypes[] = {
static const struct pcl711_board boardtypes[] = {
{"pcl711", 0, 0, 0, 5, 8, 1, 0, &range_bipolar5},
{"pcl711b", 1, 0, 0, 5, 8, 1, 7, &range_pcl711b_ai},
{"acl8112hg", 0, 1, 0, 12, 16, 2, 15, &range_acl8112hg_ai},
{"acl8112dg", 0, 1, 1, 9, 16, 2, 15, &range_acl8112dg_ai},
};

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

static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int pcl711_detach(struct comedi_device * dev);
Expand All @@ -163,7 +165,7 @@ static struct comedi_driver driver_pcl711 = {
detach:pcl711_detach,
board_name:&boardtypes[0].name,
num_names:n_boardtypes,
offset:sizeof(boardtype),
offset:sizeof(struct pcl711_board),
};

COMEDI_INITCLEANUP(driver_pcl711);
Expand Down

0 comments on commit 4654cd4

Please sign in to comment.