Commit 4f4123ba authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove contec_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 72e7b74d
...@@ -66,14 +66,14 @@ MODULE_DEVICE_TABLE(pci, contec_pci_table); ...@@ -66,14 +66,14 @@ MODULE_DEVICE_TABLE(pci, contec_pci_table);
#define thisboard ((const struct contec_board *)dev->board_ptr) #define thisboard ((const struct contec_board *)dev->board_ptr)
typedef struct { struct contec_private {
int data; int data;
struct pci_dev *pci_dev; struct pci_dev *pci_dev;
} contec_private; };
#define devpriv ((contec_private *)dev->private) #define devpriv ((struct contec_private *)dev->private)
static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int contec_detach(struct comedi_device * dev); static int contec_detach(struct comedi_device * dev);
...@@ -106,7 +106,7 @@ static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * i ...@@ -106,7 +106,7 @@ static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * i
dev->board_name = thisboard->name; dev->board_name = thisboard->name;
if (alloc_private(dev, sizeof(contec_private)) < 0) if (alloc_private(dev, sizeof(struct contec_private)) < 0)
return -ENOMEM; return -ENOMEM;
if (alloc_subdevices(dev, 2) < 0) if (alloc_subdevices(dev, 2) < 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