Staging: comedi: Remove pc236_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
57ad869651
commit
f1ee810a13
@@ -148,16 +148,16 @@ MODULE_DEVICE_TABLE(pci, pc236_pci_table);
|
|||||||
/* this structure is for data unique to this hardware driver. If
|
/* this structure is for data unique to this hardware driver. If
|
||||||
several hardware drivers keep similar information in this structure,
|
several hardware drivers keep similar information in this structure,
|
||||||
feel free to suggest moving the variable to the struct comedi_device struct. */
|
feel free to suggest moving the variable to the struct comedi_device struct. */
|
||||||
typedef struct {
|
struct pc236_private {
|
||||||
#ifdef CONFIG_COMEDI_PCI
|
#ifdef CONFIG_COMEDI_PCI
|
||||||
/* PCI device */
|
/* PCI device */
|
||||||
struct pci_dev *pci_dev;
|
struct pci_dev *pci_dev;
|
||||||
unsigned long lcr_iobase; /* PLX PCI9052 config registers in PCIBAR1 */
|
unsigned long lcr_iobase; /* PLX PCI9052 config registers in PCIBAR1 */
|
||||||
#endif
|
#endif
|
||||||
int enable_irq;
|
int enable_irq;
|
||||||
} pc236_private;
|
};
|
||||||
|
|
||||||
#define devpriv ((pc236_private *)dev->private)
|
#define devpriv ((struct pc236_private *)dev->private)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The struct comedi_driver structure tells the Comedi core module
|
* The struct comedi_driver structure tells the Comedi core module
|
||||||
@@ -282,7 +282,7 @@ static int pc236_attach(struct comedi_device * dev, struct comedi_devconfig * it
|
|||||||
* Allocate the private structure area. alloc_private() is a
|
* Allocate the private structure area. alloc_private() is a
|
||||||
* convenient macro defined in comedidev.h.
|
* convenient macro defined in comedidev.h.
|
||||||
*/
|
*/
|
||||||
if ((ret = alloc_private(dev, sizeof(pc236_private))) < 0) {
|
if ((ret = alloc_private(dev, sizeof(struct pc236_private))) < 0) {
|
||||||
printk(KERN_ERR "comedi%d: error! out of memory!\n",
|
printk(KERN_ERR "comedi%d: error! out of memory!\n",
|
||||||
dev->minor);
|
dev->minor);
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user