Skip to content

Commit

Permalink
Staging: comedi: Remove adq12b_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 47c6e95 commit 1ade315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/comedi/drivers/adq12b.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ static const struct adq12b_board adq12b_boards[] = {

#define thisboard ((const struct adq12b_board *)dev->board_ptr)

typedef struct{
struct adq12b_private {
int unipolar; /* option 2 of comedi_config (1 is iobase) */
int differential; /* option 3 of comedi_config */
int last_channel;
int last_range;
unsigned int digital_state;
}adq12b_private;
};

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

/*
* The struct comedi_driver structure tells the Comedi core module
Expand Down Expand Up @@ -219,7 +219,7 @@ static int adq12b_attach(struct comedi_device *dev,struct comedi_devconfig *it)
* Allocate the private structure area. alloc_private() is a
* convenient macro defined in comedidev.h.
*/
if(alloc_private(dev, sizeof(adq12b_private)) < 0)
if(alloc_private(dev, sizeof(struct adq12b_private)) < 0)
return -ENOMEM;

/* fill in devpriv structure */
Expand Down

0 comments on commit 1ade315

Please sign in to comment.