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

Staging: comedi: Remove dnp_private_data typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b3fb588d
...@@ -72,9 +72,11 @@ static const dnp_board dnp_boards[] = { /* we only support one DNP 'board' */ ...@@ -72,9 +72,11 @@ static const dnp_board dnp_boards[] = { /* we only support one DNP 'board' */
#define thisboard ((const dnp_board *)dev->board_ptr) #define thisboard ((const dnp_board *)dev->board_ptr)
/* This structure is for data unique to the DNP driver --------------------- */ /* This structure is for data unique to the DNP driver --------------------- */
typedef struct { struct dnp_private_data {
// //
} dnp_private_data; };
/* Shorthand macro for faster access to the private data ------------------- */ /* Shorthand macro for faster access to the private data ------------------- */
#define devpriv ((dnp_private *)dev->private) #define devpriv ((dnp_private *)dev->private)
...@@ -131,7 +133,7 @@ static int dnp_attach(struct comedi_device * dev, struct comedi_devconfig * it) ...@@ -131,7 +133,7 @@ static int dnp_attach(struct comedi_device * dev, struct comedi_devconfig * it)
/* Allocate the private structure area. alloc_private() is a convenient */ /* Allocate the private structure area. alloc_private() is a convenient */
/* macro defined in comedidev.h. */ /* macro defined in comedidev.h. */
if (alloc_private(dev, sizeof(dnp_private_data)) < 0) if (alloc_private(dev, sizeof(struct dnp_private_data)) < 0)
return -ENOMEM; return -ENOMEM;
/* Allocate the subdevice structures. alloc_subdevice() is a convenient */ /* Allocate the subdevice structures. alloc_subdevice() is a convenient */
......
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