diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:15:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:08 -0700 |
commit | 16450130a9f7006c91c9f49d725b9029fe711240 (patch) | |
tree | 7d455a18bf95a71586bbc5aa28f44d6a7b176caf | |
parent | 9beff277bb14a844b5cb437fcdca9db7534ee44a (diff) |
Staging: comedi: Remove skel_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/mpc624.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/mpc624.c b/drivers/staging/comedi/drivers/mpc624.c index ee053f149dd9..a151602929d9 100644 --- a/drivers/staging/comedi/drivers/mpc624.c +++ b/drivers/staging/comedi/drivers/mpc624.c @@ -120,11 +120,13 @@ Configuration Options: #define MPC624_SPEED_13_75_Hz (MPC624_OSR4 | MPC624_OSR3 | MPC624_OSR0) #define MPC624_SPEED_6_875_Hz (MPC624_OSR4 | MPC624_OSR3 | MPC624_OSR2 | MPC624_OSR1 | MPC624_OSR0) //---------------------------------------------------------------------------- -typedef struct { +struct skel_private { + unsigned long int ulConvertionRate; // set by mpc624_attach() from driver's parameters -} skel_private; +}; + -#define devpriv ((skel_private *)dev->private) +#define devpriv ((struct skel_private *)dev->private) //---------------------------------------------------------------------------- static const struct comedi_lrange range_mpc624_bipolar1 = { 1, @@ -174,7 +176,7 @@ static int mpc624_attach(struct comedi_device * dev, struct comedi_devconfig * i dev->board_name = "mpc624"; // Private structure initialization - if (alloc_private(dev, sizeof(skel_private)) < 0) + if (alloc_private(dev, sizeof(struct skel_private)) < 0) return -ENOMEM; switch (it->options[1]) { |