Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141690
b: refs/heads/master
c: 01983c3
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent f02094e commit 355f644
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 92b635c5bea18d7eb3c46bfdcc930d9d86d3d177
refs/heads/master: 01983c39f023efa7204eb6b61480d5c495124240
13 changes: 7 additions & 6 deletions trunk/drivers/staging/comedi/drivers/ni_at_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ Configuration options:
* boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not.
*/
typedef struct atao_board_struct {
struct atao_board {
const char *name;
int n_ao_chans;
} atao_board;
static const atao_board atao_boards[] = {
};

static const struct atao_board atao_boards[] = {
{
name: "ai-ao-6",
n_ao_chans:6,
Expand All @@ -166,7 +167,7 @@ static const atao_board atao_boards[] = {
},
};

#define thisboard ((atao_board *)dev->board_ptr)
#define thisboard ((struct atao_board *)dev->board_ptr)

struct atao_private {

Expand All @@ -188,8 +189,8 @@ static struct comedi_driver driver_atao = {
attach:atao_attach,
detach:atao_detach,
board_name:&atao_boards[0].name,
offset:sizeof(atao_board),
num_names:sizeof(atao_boards) / sizeof(atao_board),
offset:sizeof(struct atao_board),
num_names:sizeof(atao_boards) / sizeof(struct atao_board),
};

COMEDI_INITCLEANUP(driver_atao);
Expand Down

0 comments on commit 355f644

Please sign in to comment.