diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:16:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:09 -0700 |
commit | adf328432473a9baf2b7b0a50864d9736890fa8a (patch) | |
tree | aa8b040d5bf2d7f6c0ec56b28492fff7e01df588 /drivers | |
parent | 9f30c243c86483f24dc2687a8708985d147d63e0 (diff) |
Staging: comedi: Remove dio700_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/ni_daq_700.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c index 1530416e4fa6..41c1e1ab5c00 100644 --- a/drivers/staging/comedi/drivers/ni_daq_700.c +++ b/drivers/staging/comedi/drivers/ni_daq_700.c @@ -91,11 +91,13 @@ static const dio700_board dio700_boards[] = { */ #define thisboard ((const dio700_board *)dev->board_ptr) -typedef struct { +struct dio700_private { + int data; /* number of data points left to be taken */ -} dio700_private; +}; + -#define devpriv ((dio700_private *)dev->private) +#define devpriv ((struct dio700_private *)dev->private) static struct comedi_driver driver_dio700 = { driver_name:"ni_daq_700", @@ -360,7 +362,7 @@ static int dio700_attach(struct comedi_device * dev, struct comedi_devconfig * i struct pcmcia_device *link; /* allocate and initialize dev->private */ - if (alloc_private(dev, sizeof(dio700_private)) < 0) + if (alloc_private(dev, sizeof(struct dio700_private)) < 0) return -ENOMEM; // get base address, irq etc. based on bustype |