*/
#define thisboard ((const dio24_board *)dev->board_ptr)
-typedef struct {
+struct dio24_private {
+
int data; /* number of data points left to be taken */
-} dio24_private;
+};
+
-#define devpriv ((dio24_private *)dev->private)
+#define devpriv ((struct dio24_private *)dev->private)
static struct comedi_driver driver_dio24 = {
driver_name:"ni_daq_dio24",
struct pcmcia_device *link;
/* allocate and initialize dev->private */
- if (alloc_private(dev, sizeof(dio24_private)) < 0)
+ if (alloc_private(dev, sizeof(struct dio24_private)) < 0)
return -ENOMEM;
// get base address, irq etc. based on bustype