Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141600
b: refs/heads/master
c: 68b08cd
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 4c0925b commit a4d3d21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98484c1ae621eb784c4b2a7dd6c76a069bad6214
refs/heads/master: 68b08cdad78c79fc87df52f8c8d4adf60ec5d7fc
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/drivers/dt282x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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)

/*
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit a4d3d21

Please sign in to comment.