Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141662
b: refs/heads/master
c: 502dd07
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 9d043e8 commit adbdca3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: fe0ff175329a83de8f9aac7c0b759cde15cb2247
refs/heads/master: 502dd07999b48994dc3c86a0c44f1a684299d44f
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/acl7225b.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ Devices: [Adlink] ACL-7225b (acl7225b), [ICP] P16R16DIO (p16r16dio)
static int acl7225b_attach(struct comedi_device *dev, struct comedi_devconfig * it);
static int acl7225b_detach(struct comedi_device *dev);

typedef struct {
struct boardtype {
const char *name; // driver name
int io_range; // len of I/O space
} boardtype;
};

static const boardtype boardtypes[] = {
static const struct boardtype boardtypes[] = {
{"acl7225b", ACL7225_SIZE,},
{"p16r16dio", P16R16DIO_SIZE,},
};

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

static struct comedi_driver driver_acl7225b = {
driver_name:"acl7225b",
Expand All @@ -45,7 +45,7 @@ static struct comedi_driver driver_acl7225b = {
detach:acl7225b_detach,
board_name:&boardtypes[0].name,
num_names:n_boardtypes,
offset:sizeof(boardtype),
offset:sizeof(struct boardtype),
};

COMEDI_INITCLEANUP(driver_acl7225b);
Expand Down

0 comments on commit adbdca3

Please sign in to comment.