Skip to content

Commit

Permalink
Staging: comedi: Remove adl_pci7432_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 8dca707 commit ddc3dbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/adl_pci7432.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci7432_pci_table) = {

MODULE_DEVICE_TABLE(pci, adl_pci7432_pci_table);

typedef struct {
struct adl_pci7432_private {
int data;
struct pci_dev *pci_dev;
} adl_pci7432_private;
};

#define devpriv ((adl_pci7432_private *)dev->private)
#define devpriv ((struct adl_pci7432_private *)dev->private)

static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int adl_pci7432_detach(struct comedi_device * dev);
Expand Down Expand Up @@ -90,7 +90,7 @@ static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfi
bus = it->options[0];
slot = it->options[1];

if (alloc_private(dev, sizeof(adl_pci7432_private)) < 0)
if (alloc_private(dev, sizeof(struct adl_pci7432_private)) < 0)
return -ENOMEM;

if (alloc_subdevices(dev, 2) < 0)
Expand Down

0 comments on commit ddc3dbf

Please sign in to comment.