Skip to content

Commit

Permalink
Staging: comedi: Remove pcmda12_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 087ea31 commit 39eb312
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ static const pcmda12_board pcmda12_boards[] = {
*/
#define thisboard ((const pcmda12_board *)dev->board_ptr)

typedef struct {
struct pcmda12_private {

unsigned int ao_readback[CHANS];
int simultaneous_xfer_mode;
} pcmda12_private;
};


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

/*
* The struct comedi_driver structure tells the Comedi core module
Expand Down Expand Up @@ -174,7 +176,7 @@ static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig *
* Allocate the private structure area. alloc_private() is a
* convenient macro defined in comedidev.h.
*/
if (alloc_private(dev, sizeof(pcmda12_private)) < 0) {
if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) {
printk("cannot allocate private data structure\n");
return -ENOMEM;
}
Expand Down

0 comments on commit 39eb312

Please sign in to comment.