Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141638
b: refs/heads/master
c: d89da61
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 34636db commit 433a80c
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 51091b5420c564093d721d2dad99a55bbb22d0d0
refs/heads/master: d89da61754236aee5ab8faf0cab7f5449a2fdd34
9 changes: 5 additions & 4 deletions trunk/drivers/staging/comedi/drivers/dt2811.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ static int dt2811_do_insn_bits(struct comedi_device * dev, struct comedi_subdevi
struct comedi_insn * insn, unsigned int * data);

enum { card_2811_pgh, card_2811_pgl };
typedef struct {

struct dt2811_private {
int ntrig;
int curadchan;
enum {
Expand All @@ -249,9 +250,9 @@ typedef struct {
} dac_range[2];
const struct comedi_lrange *range_type_list[2];
unsigned int ao_readback[2];
} dt2811_private;
};

#define devpriv ((dt2811_private *)dev->private)
#define devpriv ((struct dt2811_private *)dev->private)

static const struct comedi_lrange *dac_range_types[] = {
&range_bipolar5,
Expand Down Expand Up @@ -377,7 +378,7 @@ static int dt2811_attach(struct comedi_device * dev, struct comedi_devconfig * i

if ((ret = alloc_subdevices(dev, 4)) < 0)
return ret;
if ((ret = alloc_private(dev, sizeof(dt2811_private))) < 0)
if ((ret = alloc_private(dev, sizeof(struct dt2811_private))) < 0)
return ret;
switch (it->options[2]) {
case 0:
Expand Down

0 comments on commit 433a80c

Please sign in to comment.