From 8dca707e148ed7c25a5d9fc37a831e5fc56776fa Mon Sep 17 00:00:00 2001 From: Bill Pemberton Date: Mon, 16 Mar 2009 22:07:09 -0400 Subject: [PATCH] Staging: comedi: Remove adl_pci7296_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adl_pci7296.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci7296.c b/drivers/staging/comedi/drivers/adl_pci7296.c index 7fe4ce14fcf3..bd0f9ab226ef 100644 --- a/drivers/staging/comedi/drivers/adl_pci7296.c +++ b/drivers/staging/comedi/drivers/adl_pci7296.c @@ -56,12 +56,13 @@ static DEFINE_PCI_DEVICE_TABLE(adl_pci7296_pci_table) = { MODULE_DEVICE_TABLE(pci, adl_pci7296_pci_table); -typedef struct { +struct adl_pci7296_private { int data; struct pci_dev *pci_dev; -} adl_pci7296_private; +}; + -#define devpriv ((adl_pci7296_private *)dev->private) +#define devpriv ((struct adl_pci7296_private *)dev->private) static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int adl_pci7296_detach(struct comedi_device * dev); @@ -86,7 +87,7 @@ static int adl_pci7296_attach(struct comedi_device * dev, struct comedi_devconfi bus = it->options[0]; slot = it->options[1]; - if (alloc_private(dev, sizeof(adl_pci7296_private)) < 0) + if (alloc_private(dev, sizeof(struct adl_pci7296_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 4) < 0) -- 2.20.1