diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:14:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:07 -0700 |
commit | 7f435c068c488527842461b9872c0484a3c9ae61 (patch) | |
tree | 675bafc157d0555d7cca1d5b312ae09c0bfee9ce | |
parent | 4634b8154e23ced2f70a00ab3a22e6b1987fc348 (diff) |
Staging: comedi: Remove dt2801_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/dt2801.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/dt2801.c b/drivers/staging/comedi/drivers/dt2801.c index 0374e9f82d2..d6fe2b08d1e 100644 --- a/drivers/staging/comedi/drivers/dt2801.c +++ b/drivers/staging/comedi/drivers/dt2801.c @@ -220,11 +220,13 @@ static const struct dt2801_board boardtypes[] = { #define n_boardtypes ((sizeof(boardtypes))/(sizeof(boardtypes[0]))) #define boardtype (*(const struct dt2801_board *)dev->board_ptr) -typedef struct { +struct dt2801_private { + const struct comedi_lrange *dac_range_types[2]; unsigned int ao_readback[2]; -} dt2801_private; -#define devpriv ((dt2801_private *)dev->private) +}; + +#define devpriv ((struct dt2801_private *)dev->private) static int dt2801_ai_insn_read(struct comedi_device * dev, struct comedi_subdevice * s, struct comedi_insn * insn, unsigned int * data); @@ -521,7 +523,7 @@ static int dt2801_attach(struct comedi_device * dev, struct comedi_devconfig * i if ((ret = alloc_subdevices(dev, 4)) < 0) goto out; - if ((ret = alloc_private(dev, sizeof(dt2801_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct dt2801_private))) < 0) goto out; dev->board_name = boardtype.name; |