Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141658
b: refs/heads/master
c: c611ad3
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 1d46bea commit 110c7a8
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: 6ae9488bafce561c087310c051f92bbd0a27b891
refs/heads/master: c611ad3313831f1f79b063b282deb4248e283f39
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/s526.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct s526GPCTConfig {
* boards in this way is optional, and completely driver-dependent.
* Some drivers use arrays such as this, other do not.
*/
typedef struct s526_board_struct {
struct s526_board {
const char *name;
int gpct_chans;
int gpct_bits;
Expand All @@ -165,9 +165,9 @@ typedef struct s526_board_struct {
int da_chans;
int da_bits;
int have_dio;
} s526_board;
};

static const s526_board s526_boards[] = {
static const struct s526_board s526_boards[] = {
{
name: "s526",
gpct_chans:4,
Expand All @@ -186,7 +186,7 @@ static const s526_board s526_boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const s526_board *)dev->board_ptr)
#define thisboard ((const struct s526_board *)dev->board_ptr)

/* this structure is for data unique to this hardware driver. If
several hardware drivers keep similar information in this structure,
Expand Down Expand Up @@ -243,8 +243,8 @@ static struct comedi_driver driver_s526 = {
* devices are such boards.
*/
board_name:&s526_boards[0].name,
offset:sizeof(s526_board),
num_names:sizeof(s526_boards) / sizeof(s526_board),
offset:sizeof(struct s526_board),
num_names:sizeof(s526_boards) / sizeof(struct s526_board),
};

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

0 comments on commit 110c7a8

Please sign in to comment.