summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:16:28 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:09 -0700
commit344d23e931fdb982489753e5189d9c60ffbdfd67 (patch)
tree71a6c5b2e57daf2d3e41aa121d83f91c24f5c5c6 /drivers
parentadf328432473a9baf2b7b0a50864d9736890fa8a (diff)
Staging: comedi: Remove dio24_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/ni_daq_dio24.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ni_daq_dio24.c b/drivers/staging/comedi/drivers/ni_daq_dio24.c
index ed734bb3647e..daec5c4b4c95 100644
--- a/drivers/staging/comedi/drivers/ni_daq_dio24.c
+++ b/drivers/staging/comedi/drivers/ni_daq_dio24.c
@@ -91,11 +91,13 @@ static const dio24_board dio24_boards[] = {
*/
#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",
@@ -117,7 +119,7 @@ static int dio24_attach(struct comedi_device * dev, struct comedi_devconfig * it
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