Staging: comedi: Remove pcl711_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2e2269f90f
commit
e1c8638f3f
|
@ -168,7 +168,8 @@ static struct comedi_driver driver_pcl711 = {
|
||||||
|
|
||||||
COMEDI_INITCLEANUP(driver_pcl711);
|
COMEDI_INITCLEANUP(driver_pcl711);
|
||||||
|
|
||||||
typedef struct {
|
struct pcl711_private {
|
||||||
|
|
||||||
int board;
|
int board;
|
||||||
int adchan;
|
int adchan;
|
||||||
int ntrig;
|
int ntrig;
|
||||||
|
@ -177,9 +178,10 @@ typedef struct {
|
||||||
unsigned int ao_readback[2];
|
unsigned int ao_readback[2];
|
||||||
unsigned int divisor1;
|
unsigned int divisor1;
|
||||||
unsigned int divisor2;
|
unsigned int divisor2;
|
||||||
} pcl711_private;
|
};
|
||||||
|
|
||||||
#define devpriv ((pcl711_private *)dev->private)
|
|
||||||
|
#define devpriv ((struct pcl711_private *)dev->private)
|
||||||
|
|
||||||
static irqreturn_t pcl711_interrupt(int irq, void *d PT_REGS_ARG)
|
static irqreturn_t pcl711_interrupt(int irq, void *d PT_REGS_ARG)
|
||||||
{
|
{
|
||||||
|
@ -548,7 +550,7 @@ static int pcl711_attach(struct comedi_device * dev, struct comedi_devconfig * i
|
||||||
|
|
||||||
if ((ret = alloc_subdevices(dev, 4)) < 0)
|
if ((ret = alloc_subdevices(dev, 4)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if ((ret = alloc_private(dev, sizeof(pcl711_private))) < 0)
|
if ((ret = alloc_private(dev, sizeof(struct pcl711_private))) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
s = dev->subdevices + 0;
|
s = dev->subdevices + 0;
|
||||||
|
|
Loading…
Reference in New Issue