Skip to content

Commit

Permalink
Staging: comedi: Remove atao_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 3cc3872 commit 75b8073
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/ni_at_ao.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,17 @@ static const atao_board atao_boards[] = {

#define thisboard ((atao_board *)dev->board_ptr)

typedef struct {
struct atao_private {

unsigned short cfg1;
unsigned short cfg2;
unsigned short cfg3;

/* Used for AO readback */
unsigned int ao_readback[10];
} atao_private;
#define devpriv ((atao_private *)dev->private)
};

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

static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it);
static int atao_detach(struct comedi_device * dev);
Expand Down Expand Up @@ -230,7 +232,7 @@ static int atao_attach(struct comedi_device * dev, struct comedi_devconfig * it)

dev->board_name = thisboard->name;

if (alloc_private(dev, sizeof(atao_private)) < 0)
if (alloc_private(dev, sizeof(struct atao_private)) < 0)
return -ENOMEM;

if (alloc_subdevices(dev, 4) < 0)
Expand Down

0 comments on commit 75b8073

Please sign in to comment.