Commit 2e2269f9 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove cnt_device_private typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 83101a17
...@@ -82,11 +82,13 @@ static const struct cnt_board_struct cnt_boards[] = { ...@@ -82,11 +82,13 @@ static const struct cnt_board_struct cnt_boards[] = {
/*-- device private structure -----------------------------------------------*/ /*-- device private structure -----------------------------------------------*/
typedef struct { struct cnt_device_private {
struct pci_dev *pcidev; 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 = { static struct comedi_driver cnt_driver = {
driver_name:CNT_DRIVER_NAME, driver_name:CNT_DRIVER_NAME,
...@@ -155,7 +157,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it) ...@@ -155,7 +157,7 @@ static int cnt_attach(struct comedi_device * dev, struct comedi_devconfig * it)
int error, i; int error, i;
/* allocate device private structure */ /* 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; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment