Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141569
b: refs/heads/master
c: 324da11
h: refs/heads/master
i:
  141567: 314dd18
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 42d4a97 commit f3536f9
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ecce6332ef5f88ba0ac8e9e7511538431952dda7
refs/heads/master: 324da11efaea562c8270834ac03c7c3df03aa79b
10 changes: 5 additions & 5 deletions trunk/drivers/staging/comedi/drivers/cb_pcimdda.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Configuration Options:
* This is straight from skel.c -- I did this in case this source file
* will someday support more than 1 board...
*/
typedef struct board_struct {
struct board_struct {
const char *name;
unsigned short device_id;
int ao_chans;
Expand All @@ -108,15 +108,15 @@ typedef struct board_struct {
int regs_badrindex; /* IO Region for the control, analog output,
and DIO registers */
int reg_sz; /* number of bytes of registers in io region */
} board;
};

enum DIO_METHODS {
DIO_NONE = 0,
DIO_8255,
DIO_INTERNAL /* unimplemented */
};

static const board boards[] = {
static const struct board_struct boards[] = {
{
name: "cb_pcimdda06-16",
device_id:PCI_ID_PCIM_DDA06_16,
Expand All @@ -133,10 +133,10 @@ static const board boards[] = {
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const board *)dev->board_ptr)
#define thisboard ((const struct board_struct *)dev->board_ptr)

/* Number of boards in boards[] */
#define N_BOARDS (sizeof(boards) / sizeof(board))
#define N_BOARDS (sizeof(boards) / sizeof(struct board_struct))
#define REG_SZ (thisboard->reg_sz)
#define REGS_BADRINDEX (thisboard->regs_badrindex)

Expand Down

0 comments on commit f3536f9

Please sign in to comment.