Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141555
b: refs/heads/master
c: 5a676a2
h: refs/heads/master
i:
  141553: 4e4eedd
  141551: c45e377
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent c4b569c commit 59dc71e
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: cd60d1ec0ca6c3be3df1a2edb548613e9d175cee
refs/heads/master: 5a676a21f496b68506d6ebc94bc137b7acecdbd3
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/amplc_pci224.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ static const unsigned short hwrange_pci234[1] = {

enum pci224_model { any_model, pci224_model, pci234_model };

typedef struct pci224_board_struct {
struct pci224_board {
const char *name;
unsigned short devid;
enum pci224_model model;
unsigned int ao_chans;
unsigned int ao_bits;
} pci224_board;
};

static const pci224_board pci224_boards[] = {
static const struct pci224_board pci224_boards[] = {
{
name: "pci224",
devid: PCI_DEVICE_ID_AMPLICON_PCI224,
Expand Down Expand Up @@ -393,7 +393,7 @@ MODULE_DEVICE_TABLE(pci, pci224_pci_table);
/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((pci224_board *)dev->board_ptr)
#define thisboard ((struct pci224_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 @@ -434,8 +434,8 @@ static struct comedi_driver driver_amplc_pci224 = {
attach:pci224_attach,
detach:pci224_detach,
board_name:&pci224_boards[0].name,
offset:sizeof(pci224_board),
num_names:sizeof(pci224_boards) / sizeof(pci224_board),
offset:sizeof(struct pci224_board),
num_names:sizeof(pci224_boards) / sizeof(struct pci224_board),
};

COMEDI_PCI_INITCLEANUP(driver_amplc_pci224, pci224_pci_table);
Expand Down

0 comments on commit 59dc71e

Please sign in to comment.