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

Staging: comedi: Remove ni_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8ab41df0
...@@ -276,10 +276,12 @@ static const int ni_irqpin[] = ...@@ -276,10 +276,12 @@ static const int ni_irqpin[] =
#define NI_E_IRQ_FLAGS 0 #define NI_E_IRQ_FLAGS 0
typedef struct { struct ni_private {
struct pnp_dev *isapnp_dev; struct pnp_dev *isapnp_dev;
NI_PRIVATE_COMMON} ni_private; NI_PRIVATE_COMMON
#define devpriv ((ni_private *)dev->private) };
#define devpriv ((struct ni_private *)dev->private)
/* How we access registers */ /* How we access registers */
......
...@@ -4278,7 +4278,7 @@ static int ni_alloc_private(struct comedi_device * dev) ...@@ -4278,7 +4278,7 @@ static int ni_alloc_private(struct comedi_device * dev)
{ {
int ret; int ret;
ret = alloc_private(dev, sizeof(ni_private)); ret = alloc_private(dev, sizeof(struct ni_private));
if (ret < 0) if (ret < 0)
return ret; return ret;
......
...@@ -1218,9 +1218,11 @@ static struct comedi_driver driver_pcimio = { ...@@ -1218,9 +1218,11 @@ static struct comedi_driver driver_pcimio = {
COMEDI_PCI_INITCLEANUP(driver_pcimio, ni_pci_table) COMEDI_PCI_INITCLEANUP(driver_pcimio, ni_pci_table)
typedef struct { struct ni_private {
NI_PRIVATE_COMMON} ni_private; NI_PRIVATE_COMMON
#define devpriv ((ni_private *)dev->private) };
#define devpriv ((struct ni_private *)dev->private)
/* How we access registers */ /* How we access registers */
......
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