Commit 8ce8a1ff authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove ni_670x_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0cb5e8ff
......@@ -98,14 +98,16 @@ MODULE_DEVICE_TABLE(pci, ni_670x_pci_table);
#define thisboard ((ni_670x_board *)dev->board_ptr)
typedef struct {
struct ni_670x_private {
struct mite_struct *mite;
int boardtype;
int dio;
unsigned int ao_readback[32];
} ni_670x_private;
};
#define devpriv ((ni_670x_private *)dev->private)
#define devpriv ((struct ni_670x_private *)dev->private)
#define n_ni_670x_boards (sizeof(ni_670x_boards)/sizeof(ni_670x_boards[0]))
static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig * it);
......@@ -141,7 +143,7 @@ static int ni_670x_attach(struct comedi_device * dev, struct comedi_devconfig *
printk("comedi%d: ni_670x: ", dev->minor);
if ((ret = alloc_private(dev, sizeof(ni_670x_private))) < 0)
if ((ret = alloc_private(dev, sizeof(struct ni_670x_private))) < 0)
return ret;
ret = ni_670x_find_device(dev, it->options[0], it->options[1]);
......
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