Commit 0c5a144d authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove das1800_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ce422cf3
...@@ -463,7 +463,7 @@ static const struct das1800_board das1800_boards[] = { ...@@ -463,7 +463,7 @@ static const struct das1800_board das1800_boards[] = {
*/ */
#define thisboard ((const struct das1800_board *)dev->board_ptr) #define thisboard ((const struct das1800_board *)dev->board_ptr)
typedef struct { struct das1800_private {
volatile unsigned int count; /* number of data points left to be taken */ volatile unsigned int count; /* number of data points left to be taken */
unsigned int divisor1; /* value to load into board's counter 1 for timed conversions */ unsigned int divisor1; /* value to load into board's counter 1 for timed conversions */
unsigned int divisor2; /* value to load into board's counter 2 for timed conversions */ unsigned int divisor2; /* value to load into board's counter 2 for timed conversions */
...@@ -481,9 +481,9 @@ typedef struct { ...@@ -481,9 +481,9 @@ typedef struct {
unsigned int dma_transfer_size; /* size of transfer currently used, in bytes */ unsigned int dma_transfer_size; /* size of transfer currently used, in bytes */
unsigned long iobase2; /* secondary io address used for analog out on 'ao' boards */ unsigned long iobase2; /* secondary io address used for analog out on 'ao' boards */
short ao_update_bits; /* remembers the last write to the 'update' dac */ short ao_update_bits; /* remembers the last write to the 'update' dac */
} das1800_private; };
#define devpriv ((das1800_private *)dev->private) #define devpriv ((struct das1800_private *)dev->private)
// analog out range for boards with basic analog out // analog out range for boards with basic analog out
static const struct comedi_lrange range_ao_1 = { static const struct comedi_lrange range_ao_1 = {
...@@ -602,7 +602,7 @@ static int das1800_attach(struct comedi_device * dev, struct comedi_devconfig * ...@@ -602,7 +602,7 @@ static int das1800_attach(struct comedi_device * dev, struct comedi_devconfig *
int retval; int retval;
/* allocate and initialize dev->private */ /* allocate and initialize dev->private */
if (alloc_private(dev, sizeof(das1800_private)) < 0) if (alloc_private(dev, sizeof(struct das1800_private)) < 0)
return -ENOMEM; return -ENOMEM;
printk("comedi%d: %s: io 0x%lx", dev->minor, driver_das1800.driver_name, printk("comedi%d: %s: io 0x%lx", dev->minor, driver_das1800.driver_name,
......
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