Commit 1ade3157 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove adq12b_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 47c6e958
...@@ -146,15 +146,15 @@ static const struct adq12b_board adq12b_boards[] = { ...@@ -146,15 +146,15 @@ static const struct adq12b_board adq12b_boards[] = {
#define thisboard ((const struct adq12b_board *)dev->board_ptr) #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 unipolar; /* option 2 of comedi_config (1 is iobase) */
int differential; /* option 3 of comedi_config */ int differential; /* option 3 of comedi_config */
int last_channel; int last_channel;
int last_range; int last_range;
unsigned int digital_state; 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 * The struct comedi_driver structure tells the Comedi core module
...@@ -219,7 +219,7 @@ static int adq12b_attach(struct comedi_device *dev,struct comedi_devconfig *it) ...@@ -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 * Allocate the private structure area. alloc_private() is a
* convenient macro defined in comedidev.h. * 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; return -ENOMEM;
/* fill in devpriv structure */ /* fill in devpriv structure */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment