Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141540
b: refs/heads/master
c: 4cb1335
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent c9d747d commit 92a044f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: ba23095c03a8b5efa3427b63b988b396bea2e485
refs/heads/master: 4cb133565aaf9b04f4fb6af5e5200982258b107c
16 changes: 8 additions & 8 deletions trunk/drivers/staging/comedi/drivers/adv_pci_dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ static struct comedi_driver driver_pci_dio = {
attach:pci_dio_attach,
detach:pci_dio_detach
};
typedef struct pci_dio_private_st pci_dio_private;
struct pci_dio_private_st {
pci_dio_private *prev; /* previous private struct */
pci_dio_private *next; /* next private struct */

struct pci_dio_private {
struct pci_dio_private *prev; /* previous private struct */
struct pci_dio_private *next; /* next private struct */
struct pci_dev *pcidev; /* pointer to board's pci_dev */
char valid; /* card is usable */
char GlobalIrqEnabled; /* 1= any IRQ source is enabled */
Expand All @@ -349,9 +349,9 @@ struct pci_dio_private_st {
unsigned short IDIFiltrHigh[8]; /* IDI's filter value high signal */
};

static pci_dio_private *pci_priv = NULL; /* list of allocated cards */
static struct pci_dio_private *pci_priv = NULL; /* list of allocated cards */

#define devpriv ((pci_dio_private *)dev->private)
#define devpriv ((struct pci_dio_private *)dev->private)
#define this_board ((const struct dio_boardtype *)dev->board_ptr)

/*
Expand Down Expand Up @@ -860,7 +860,7 @@ static int pci_dio_add_do(struct comedi_device * dev, struct comedi_subdevice *
static int CheckAndAllocCard(struct comedi_device * dev, struct comedi_devconfig * it,
struct pci_dev *pcidev)
{
pci_dio_private *pr, *prev;
struct pci_dio_private *pr, *prev;

for (pr = pci_priv, prev = NULL; pr != NULL; prev = pr, pr = pr->next) {
if (pr->pcidev == pcidev) {
Expand Down Expand Up @@ -892,7 +892,7 @@ static int pci_dio_attach(struct comedi_device * dev, struct comedi_devconfig *

rt_printk("comedi%d: adv_pci_dio: ", dev->minor);

if ((ret = alloc_private(dev, sizeof(pci_dio_private))) < 0) {
if ((ret = alloc_private(dev, sizeof(struct pci_dio_private))) < 0) {
rt_printk(", Error: Cann't allocate private memory!\n");
return -ENOMEM;
}
Expand Down

0 comments on commit 92a044f

Please sign in to comment.