Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141620
b: refs/heads/master
c: 9f30c24
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent df2170d commit b103f46
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: 75b807393272fcfcf54d1188c667dc0fccd1fb69
refs/heads/master: 9f30c243c86483f24dc2687a8708985d147d63e0
12 changes: 7 additions & 5 deletions trunk/drivers/staging/comedi/drivers/ni_atmio16d.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ Devices: [National Instruments] AT-MIO-16 (atmio16), AT-MIO-16D (atmio16d)
#define devpriv ((atmio16d_private *)dev->private)
#define ATMIO16D_TIMEOUT 10

typedef struct {
struct atmio16_board_t {

const char *name;
int has_8255;
} atmio16_board_t;
static const atmio16_board_t atmio16_boards[] = {
};

static const struct atmio16_board_t atmio16_boards[] = {
{
name: "atmio16",
has_8255:0,
Expand All @@ -120,7 +122,7 @@ static const atmio16_board_t atmio16_boards[] = {

#define n_atmio16_boards sizeof(atmio16_boards)/sizeof(atmio16_boards[0])

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

/* function prototypes */
static int atmio16d_attach(struct comedi_device * dev, struct comedi_devconfig * it);
Expand All @@ -141,7 +143,7 @@ static struct comedi_driver driver_atmio16d = {
detach:atmio16d_detach,
board_name:&atmio16_boards[0].name,
num_names:n_atmio16_boards,
offset:sizeof(atmio16_board_t),
offset:sizeof(struct atmio16_board_t),
};

COMEDI_INITCLEANUP(driver_atmio16d);
Expand Down

0 comments on commit b103f46

Please sign in to comment.