Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141605
b: refs/heads/master
c: 0b011a6
h: refs/heads/master
i:
  141603: 57dfea4
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent fe7825b commit a5c1f79
Show file tree
Hide file tree
Showing 2 changed files with 7 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: ca6f10ca8630d709e0d291fb9601f8c8d81c19a0
refs/heads/master: 0b011a6f40dfdda0e33cf5b38ce9ffb6fd7a825b
10 changes: 6 additions & 4 deletions trunk/drivers/staging/comedi/drivers/dt2815.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ COMEDI_INITCLEANUP(driver_dt2815);

static void dt2815_free_resources(struct comedi_device * dev);

typedef struct {
struct dt2815_private {

const struct comedi_lrange *range_type_list[8];
unsigned int ao_readback[8];
} dt2815_private;
};


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

static int dt2815_wait_for_status(struct comedi_device * dev, int status)
{
Expand Down Expand Up @@ -196,7 +198,7 @@ static int dt2815_attach(struct comedi_device * dev, struct comedi_devconfig * i

if (alloc_subdevices(dev, 1) < 0)
return -ENOMEM;
if (alloc_private(dev, sizeof(dt2815_private)) < 0)
if (alloc_private(dev, sizeof(struct dt2815_private)) < 0)
return -ENOMEM;

s = dev->subdevices;
Expand Down

0 comments on commit a5c1f79

Please sign in to comment.