From: Bill Pemberton Date: Tue, 17 Mar 2009 02:11:49 +0000 (-0400) Subject: Staging: comedi: Remove contec_private typedef X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f4123ba6dba07ae20c7b6eb9ca5532c0cee8614;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Staging: comedi: Remove contec_private typedef Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/contec_pci_dio.c b/drivers/staging/comedi/drivers/contec_pci_dio.c index 8c7017471a98..123ccb6e6be1 100644 --- a/drivers/staging/comedi/drivers/contec_pci_dio.c +++ b/drivers/staging/comedi/drivers/contec_pci_dio.c @@ -66,14 +66,14 @@ MODULE_DEVICE_TABLE(pci, contec_pci_table); #define thisboard ((const struct contec_board *)dev->board_ptr) -typedef struct { +struct contec_private { int data; struct pci_dev *pci_dev; -} contec_private; +}; -#define devpriv ((contec_private *)dev->private) +#define devpriv ((struct contec_private *)dev->private) static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int contec_detach(struct comedi_device * dev); @@ -106,7 +106,7 @@ static int contec_attach(struct comedi_device * dev, struct comedi_devconfig * i dev->board_name = thisboard->name; - if (alloc_private(dev, sizeof(contec_private)) < 0) + if (alloc_private(dev, sizeof(struct contec_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 2) < 0)