Skip to content

Commit

Permalink
Staging: comedi: Remove dt3k_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 60efa61 commit b81c803
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/dt3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,18 @@ MODULE_DEVICE_TABLE(pci, dt3k_pci_table);
#define DT3000_CHANNEL_MODE_SE 0
#define DT3000_CHANNEL_MODE_DI 1

typedef struct {
struct dt3k_private {

struct pci_dev *pci_dev;
resource_size_t phys_addr;
void *io_addr;
unsigned int lock;
unsigned int ao_readback[2];
unsigned int ai_front;
unsigned int ai_rear;
} dt3k_private;
#define devpriv ((dt3k_private *)dev->private)
};

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

static int dt3000_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int dt3000_detach(struct comedi_device * dev);
Expand Down Expand Up @@ -809,7 +811,7 @@ static int dt3000_attach(struct comedi_device * dev, struct comedi_devconfig * i
bus = it->options[0];
slot = it->options[1];

if ((ret = alloc_private(dev, sizeof(dt3k_private))) < 0)
if ((ret = alloc_private(dev, sizeof(struct dt3k_private))) < 0)
return ret;

ret = dt_pci_probe(dev, bus, slot);
Expand Down

0 comments on commit b81c803

Please sign in to comment.