diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-19 17:57:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:16 -0700 |
commit | 450032a318ebfc95121fc548442217592803f4a7 (patch) | |
tree | 6518da5e81f2f1346e28579b36bb611bf6b5f760 | |
parent | 222ab1bc78dd8a48576e904da37fd6f71cb41a7e (diff) |
Staging: comedi: Remove pcidas64_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/cb_pcidas64.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c index 4c2e97302a3..1a580bd2247 100644 --- a/drivers/staging/comedi/drivers/cb_pcidas64.c +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c @@ -1065,7 +1065,8 @@ struct ext_clock_info { }; /* this structure is for data unique to this hardware driver. */ -typedef struct { +struct pcidas64_private { + struct pci_dev *hw_dev; // pointer to board's pci_dev struct // base addresses (physical) resource_size_t plx9080_phys_iobase; @@ -1109,12 +1110,13 @@ typedef struct { unsigned int ai_fifo_segment_length; struct ext_clock_info ext_clock; short ao_bounce_buffer[DAC_FIFO_SIZE]; -} pcidas64_private; +}; + /* inline function that makes it easier to * access the private structure. */ -static inline pcidas64_private *priv(struct comedi_device * dev) +static inline struct pcidas64_private *priv(struct comedi_device * dev) { return dev->private; } @@ -1685,7 +1687,7 @@ static int attach(struct comedi_device *dev, struct comedi_devconfig *it) /* * Allocate the private structure area. */ - if (alloc_private(dev, sizeof(pcidas64_private)) < 0) + if (alloc_private(dev, sizeof(struct pcidas64_private)) < 0) return -ENOMEM; /* |