Commit 8dca707e authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove adl_pci7296_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3d393c86
...@@ -56,12 +56,13 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci7296_pci_table) = { ...@@ -56,12 +56,13 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci7296_pci_table) = {
MODULE_DEVICE_TABLE(pci, adl_pci7296_pci_table); MODULE_DEVICE_TABLE(pci, adl_pci7296_pci_table);
typedef struct { struct adl_pci7296_private {
int data; int data;
struct pci_dev *pci_dev; struct pci_dev *pci_dev;
} adl_pci7296_private; };
#define devpriv ((adl_pci7296_private *)dev->private) #define devpriv ((struct adl_pci7296_private *)dev->private)
static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int adl_pci7296_detach(struct comedi_device * dev); static int adl_pci7296_detach(struct comedi_device * dev);
...@@ -86,7 +87,7 @@ static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfi ...@@ -86,7 +87,7 @@ static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfi
bus = it->options[0]; bus = it->options[0];
slot = it->options[1]; slot = it->options[1];
if (alloc_private(dev, sizeof(adl_pci7296_private)) < 0) if (alloc_private(dev, sizeof(struct adl_pci7296_private)) < 0)
return -ENOMEM; return -ENOMEM;
if (alloc_subdevices(dev, 4) < 0) if (alloc_subdevices(dev, 4) < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment