diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:16:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:09 -0700 |
commit | 8ce8a1fff26a88498cfa435cf964bcba87682daf (patch) | |
tree | 282bff9b6fb6de849c310298d82a809bc21a2107 /drivers | |
parent | 0cb5e8ff4502d60967177038e2d740dae759e4b2 (diff) |
Staging: comedi: Remove ni_670x_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_670x.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c index 28b3355f5b0..dbadb8e8e1e 100644 --- a/drivers/staging/comedi/drivers/ni_670x.c +++ b/drivers/staging/comedi/drivers/ni_670x.c @@ -98,14 +98,16 @@ MODULE_DEVICE_TABLE(pci, ni_670x_pci_table); #define thisboard ((ni_670x_board *)dev->board_ptr) -typedef struct { +struct ni_670x_private { + struct mite_struct *mite; int boardtype; int dio; unsigned int ao_readback[32]; -} ni_670x_private; +}; + -#define devpriv ((ni_670x_private *)dev->private) +#define devpriv ((struct ni_670x_private *)dev->private) #define n_ni_670x_boards (sizeof(ni_670x_boards)/sizeof(ni_670x_boards[0])) static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig * it); @@ -141,7 +143,7 @@ static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig * printk("comedi%d: ni_670x: ", dev->minor); - if ((ret = alloc_private(dev, sizeof(ni_670x_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct ni_670x_private))) < 0) return ret; ret = ni_670x_find_device(dev, it->options[0], it->options[1]); |