diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:18:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:10 -0700 |
commit | 2e2269f90f2bb4e9438849f0690daba5cba29fc5 (patch) | |
tree | 107112b6b61cdf0661a7052d9c8d58d5be971bf7 | |
parent | 83101a1770982817ecbcb7679439352795bc7a47 (diff) |
Staging: comedi: Remove cnt_device_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/comedi/drivers/ke_counter.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/ke_counter.c b/drivers/staging/comedi/drivers/ke_counter.c index 6f538720d79..79f6fe5646c 100644 --- a/drivers/staging/comedi/drivers/ke_counter.c +++ b/drivers/staging/comedi/drivers/ke_counter.c @@ -82,11 +82,13 @@ static const struct cnt_board_struct cnt_boards[] = { /*-- device private structure -----------------------------------------------*/ -typedef struct { +struct cnt_device_private { + struct pci_dev *pcidev; -} cnt_device_private; +}; + -#define devpriv ((cnt_device_private *)dev->private) +#define devpriv ((struct cnt_device_private *)dev->private) static struct comedi_driver cnt_driver = { driver_name:CNT_DRIVER_NAME, @@ -155,7 +157,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it) int error, i; /* allocate device private structure */ - if ((error = alloc_private(dev, sizeof(cnt_device_private))) < 0) { + if ((error = alloc_private(dev, sizeof(struct cnt_device_private))) < 0) { return error; } |