From: Bill Pemberton Date: Tue, 17 Mar 2009 02:07:14 +0000 (-0400) Subject: Staging: comedi: Remove adl_pci7432_private typedef X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ddc3dbf4dfd38b309c4c26b2fa91e3784457a0f8;p=linux-beck.git Staging: comedi: Remove adl_pci7432_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci7432.c b/drivers/staging/comedi/drivers/adl_pci7432.c index 8fdea81b59fc..a8f1715608d1 100644 --- a/drivers/staging/comedi/drivers/adl_pci7432.c +++ b/drivers/staging/comedi/drivers/adl_pci7432.c @@ -51,12 +51,12 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci7432_pci_table) = { MODULE_DEVICE_TABLE(pci, adl_pci7432_pci_table); -typedef struct { +struct adl_pci7432_private { int data; struct pci_dev *pci_dev; -} adl_pci7432_private; +}; -#define devpriv ((adl_pci7432_private *)dev->private) +#define devpriv ((struct adl_pci7432_private *)dev->private) static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int adl_pci7432_detach(struct comedi_device * dev); @@ -90,7 +90,7 @@ static int adl_pci7432_attach(struct comedi_device * dev, struct comedi_devconfi bus = it->options[0]; slot = it->options[1]; - if (alloc_private(dev, sizeof(adl_pci7432_private)) < 0) + if (alloc_private(dev, sizeof(struct adl_pci7432_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 2) < 0)