From: Bill Pemberton Date: Tue, 17 Mar 2009 02:07:19 +0000 (-0400) Subject: Staging: comedi: Remove adl_pci8164_private typedef X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=07b666b72b122958ec125715bd4b07557c6cb889;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Staging: comedi: Remove adl_pci8164_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci8164.c b/drivers/staging/comedi/drivers/adl_pci8164.c index c401e110770c..adf90be79983 100644 --- a/drivers/staging/comedi/drivers/adl_pci8164.c +++ b/drivers/staging/comedi/drivers/adl_pci8164.c @@ -63,12 +63,12 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci8164_pci_table) = { MODULE_DEVICE_TABLE(pci, adl_pci8164_pci_table); -typedef struct { +struct adl_pci8164_private { int data; struct pci_dev *pci_dev; -} adl_pci8164_private; +}; -#define devpriv ((adl_pci8164_private *)dev->private) +#define devpriv ((struct adl_pci8164_private *)dev->private) static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int adl_pci8164_detach(struct comedi_device * dev); @@ -116,7 +116,7 @@ static int adl_pci8164_attach(struct comedi_device * dev, struct comedi_devconfi bus = it->options[0]; slot = it->options[1]; - if (alloc_private(dev, sizeof(adl_pci8164_private)) < 0) + if (alloc_private(dev, sizeof(struct adl_pci8164_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 4) < 0)