diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:15:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:08 -0700 |
commit | 6555be0a1c25576be6270bb43f1bd444df7d86f8 (patch) | |
tree | 71af51ae52982b7713cc6bec505f95b84850a3f8 | |
parent | 16450130a9f7006c91c9f49d725b9029fe711240 (diff) |
Staging: comedi: Remove mpc8260cpm_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/mpc8260cpm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/mpc8260cpm.c b/drivers/staging/comedi/drivers/mpc8260cpm.c index 7250865e8d6e..bac0a7bb9cbd 100644 --- a/drivers/staging/comedi/drivers/mpc8260cpm.c +++ b/drivers/staging/comedi/drivers/mpc8260cpm.c @@ -38,11 +38,13 @@ It is apparently missing some code. extern unsigned long mpc8260_dio_reserved[4]; -typedef struct { +struct mpc8260cpm_private { + int data; -} mpc8260cpm_private; -#define devpriv ((mpc8260cpm_private *)dev->private) +}; + +#define devpriv ((struct mpc8260cpm_private *)dev->private) static int mpc8260cpm_attach(struct comedi_device * dev, struct comedi_devconfig * it); static int mpc8260cpm_detach(struct comedi_device * dev); @@ -71,7 +73,7 @@ static int mpc8260cpm_attach(struct comedi_device * dev, struct comedi_devconfig dev->board_name = thisboard->name; - if (alloc_private(dev, sizeof(mpc8260cpm_private)) < 0) + if (alloc_private(dev, sizeof(struct mpc8260cpm_private)) < 0) return -ENOMEM; if (alloc_subdevices(dev, 4) < 0) |