Staging: comedi: Remove ni_private typedef

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Bill Pemberton 2009-03-25 11:04:20 -04:00 committed by Greg Kroah-Hartman
parent 8ab41df0d7
commit 3301cc7665
3 changed files with 11 additions and 7 deletions

View File

@ -276,10 +276,12 @@ static const int ni_irqpin[] =
#define NI_E_IRQ_FLAGS 0
typedef struct {
struct ni_private {
struct pnp_dev *isapnp_dev;
NI_PRIVATE_COMMON} ni_private;
#define devpriv ((ni_private *)dev->private)
NI_PRIVATE_COMMON
};
#define devpriv ((struct ni_private *)dev->private)
/* How we access registers */

View File

@ -4278,7 +4278,7 @@ static int ni_alloc_private(struct comedi_device * dev)
{
int ret;
ret = alloc_private(dev, sizeof(ni_private));
ret = alloc_private(dev, sizeof(struct ni_private));
if (ret < 0)
return ret;

View File

@ -1218,9 +1218,11 @@ static struct comedi_driver driver_pcimio = {
COMEDI_PCI_INITCLEANUP(driver_pcimio, ni_pci_table)
typedef struct {
NI_PRIVATE_COMMON} ni_private;
#define devpriv ((ni_private *)dev->private)
struct ni_private {
NI_PRIVATE_COMMON
};
#define devpriv ((struct ni_private *)dev->private)
/* How we access registers */