Skip to content

Commit

Permalink
Staging: comedi: Remove daqboard2000_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 9da18ff commit b365368
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static DEFINE_PCI_DEVICE_TABLE(daqboard2000_pci_table) = {

MODULE_DEVICE_TABLE(pci, daqboard2000_pci_table);

typedef struct {
struct daqboard2000_private {
enum {
card_daqboard_2000
} card;
Expand All @@ -334,9 +334,9 @@ typedef struct {
void *plx;
int got_regions;
unsigned int ao_readback[2];
} daqboard2000_private;
};

#define devpriv ((daqboard2000_private*)dev->private)
#define devpriv ((struct daqboard2000_private *)dev->private)

static void writeAcqScanListEntry(struct comedi_device * dev, u16 entry)
{
Expand Down Expand Up @@ -731,7 +731,7 @@ static int daqboard2000_attach(struct comedi_device * dev, struct comedi_devconf
bus = it->options[0];
slot = it->options[1];

result = alloc_private(dev, sizeof(daqboard2000_private));
result = alloc_private(dev, sizeof(struct daqboard2000_private));
if (result < 0) {
return -ENOMEM;
}
Expand Down

0 comments on commit b365368

Please sign in to comment.