From: Bill Pemberton Date: Tue, 17 Mar 2009 02:17:28 +0000 (-0400) Subject: Staging: comedi: Remove pcmda12_private typedef X-Git-Tag: v2.6.30-rc1~202^2~162 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=39eb312d648b530afd147a7c8198f7536f441a94;p=karo-tx-linux.git Staging: comedi: Remove pcmda12_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c index ad7726853808..81233355d67b 100644 --- a/drivers/staging/comedi/drivers/pcmda12.c +++ b/drivers/staging/comedi/drivers/pcmda12.c @@ -92,12 +92,14 @@ static const pcmda12_board pcmda12_boards[] = { */ #define thisboard ((const pcmda12_board *)dev->board_ptr) -typedef struct { +struct pcmda12_private { + unsigned int ao_readback[CHANS]; int simultaneous_xfer_mode; -} pcmda12_private; +}; + -#define devpriv ((pcmda12_private *)(dev->private)) +#define devpriv ((struct pcmda12_private *)(dev->private)) /* * The struct comedi_driver structure tells the Comedi core module @@ -174,7 +176,7 @@ static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig * * Allocate the private structure area. alloc_private() is a * convenient macro defined in comedidev.h. */ - if (alloc_private(dev, sizeof(pcmda12_private)) < 0) { + if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) { printk("cannot allocate private data structure\n"); return -ENOMEM; }