Skip to content

Commit

Permalink
Staging: comedi: Remove skel_private typedef
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 9beff27 commit 1645013
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions drivers/staging/comedi/drivers/mpc624.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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]) {
Expand Down

0 comments on commit 1645013

Please sign in to comment.