Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/*-- 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,
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;
}