aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-03-16 22:10:06 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:01 -0700
commitcd60d1ec0ca6c3be3df1a2edb548613e9d175cee (patch)
tree8d704a1562ba8a76b39b6f077a9d0ef48b9a91df /drivers
parent4beb86c25085f875935480aa0422e0a983a917f3 (diff)
Staging: comedi: Remove pc263_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/amplc_pc263.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/amplc_pc263.c b/drivers/staging/comedi/drivers/amplc_pc263.c
index 2602e7e7b2d..97ac4157ada 100644
--- a/drivers/staging/comedi/drivers/amplc_pc263.c
+++ b/drivers/staging/comedi/drivers/amplc_pc263.c
@@ -118,12 +118,12 @@ MODULE_DEVICE_TABLE(pci, pc263_pci_table);
several hardware drivers keep similar information in this structure,
feel free to suggest moving the variable to the struct comedi_device struct. */
#ifdef CONFIG_COMEDI_PCI
-typedef struct {
+struct pc263_private {
/* PCI device. */
struct pci_dev *pci_dev;
-} pc263_private;
+};
-#define devpriv ((pc263_private *)dev->private)
+#define devpriv ((struct pc263_private *)dev->private)
#endif /* CONFIG_COMEDI_PCI */
/*
@@ -236,7 +236,7 @@ static int pc263_attach(struct comedi_device * dev, struct comedi_devconfig * it
* convenient macro defined in comedidev.h.
*/
#ifdef CONFIG_COMEDI_PCI
- if ((ret = alloc_private(dev, sizeof(pc263_private))) < 0) {
+ if ((ret = alloc_private(dev, sizeof(struct pc263_private))) < 0) {
printk(KERN_ERR "comedi%d: error! out of memory!\n",
dev->minor);
return ret;