Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141640
b: refs/heads/master
c: 70a6001
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 6880b36 commit 32a46ca
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: 657f81ec27758ddb859ea9c74929996bea607194
refs/heads/master: 70a6001aeffeaa12f2a1c21470e8f3bdfb6ef8e7
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/pcmuio.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ Configuration Options:
* boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not.
*/
typedef struct pcmuio_board_struct {
struct pcmuio_board {
const char *name;
const int num_asics;
const int num_channels_per_port;
const int num_ports;
} pcmuio_board;
};

static const pcmuio_board pcmuio_boards[] = {
static const struct pcmuio_board pcmuio_boards[] = {
{
name: "pcmuio48",
num_asics:1,
Expand All @@ -169,7 +169,7 @@ static const pcmuio_board pcmuio_boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const pcmuio_board *)dev->board_ptr)
#define thisboard ((const struct pcmuio_board *)dev->board_ptr)

/* this structure is for data unique to this subdevice. */
typedef struct {
Expand Down Expand Up @@ -249,8 +249,8 @@ static struct comedi_driver driver = {
* devices are such boards.
*/
board_name:&pcmuio_boards[0].name,
offset:sizeof(pcmuio_board),
num_names:sizeof(pcmuio_boards) / sizeof(pcmuio_board),
offset:sizeof(struct pcmuio_board),
num_names:sizeof(pcmuio_boards) / sizeof(struct pcmuio_board),
};

static int pcmuio_dio_insn_bits(struct comedi_device * dev, struct comedi_subdevice * s,
Expand Down

0 comments on commit 32a46ca

Please sign in to comment.