diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-03-16 22:14:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:07 -0700 |
commit | 68b08cdad78c79fc87df52f8c8d4adf60ec5d7fc (patch) | |
tree | afbd30f1cb5a625c20f1ac6b3e377915135694de /drivers | |
parent | 98484c1ae621eb784c4b2a7dd6c76a069bad6214 (diff) |
Staging: comedi: Remove dt282x_private typedef
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/dt282x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index 6d76d98126d..4882c3e679c 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -340,7 +340,7 @@ static const struct dt282x_board boardtypes[] = { #define n_boardtypes sizeof(boardtypes)/sizeof(struct dt282x_board) #define this_board ((const struct dt282x_board *)dev->board_ptr) -typedef struct { +struct dt282x_private { int ad_2scomp; /* we have 2's comp jumper set */ int da0_2scomp; /* same, for DAC0 */ int da1_2scomp; /* same, for DAC1 */ @@ -365,9 +365,9 @@ typedef struct { int usedma; /* driver uses DMA */ volatile int current_dma_index; int dma_dir; -} dt282x_private; +}; -#define devpriv ((dt282x_private *)dev->private) +#define devpriv ((struct dt282x_private *)dev->private) #define boardtype (*(const struct dt282x_board *)dev->board_ptr) /* @@ -1326,7 +1326,7 @@ static int dt282x_attach(struct comedi_device * dev, struct comedi_devconfig * i #endif } - if ((ret = alloc_private(dev, sizeof(dt282x_private))) < 0) + if ((ret = alloc_private(dev, sizeof(struct dt282x_private))) < 0) return ret; ret = dt282x_grab_dma(dev, it->options[opt_dma1], |