Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141626
b: refs/heads/master
c: 39eb312
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 89bf076 commit 0ff1835
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: 087ea31bdabb0395f83223c153a0557136461a85
refs/heads/master: 39eb312d648b530afd147a7c8198f7536f441a94
10 changes: 6 additions & 4 deletions trunk/drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ static const pcmda12_board pcmda12_boards[] = {
*/
#define thisboard ((const pcmda12_board *)dev->board_ptr)

typedef struct {
struct pcmda12_private {

unsigned int ao_readback[CHANS];
int simultaneous_xfer_mode;
} pcmda12_private;
};


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

/*
* The struct comedi_driver structure tells the Comedi core module
Expand Down Expand Up @@ -174,7 +176,7 @@ static int pcmda12_attach(struct comedi_device * dev, struct comedi_devconfig *
* Allocate the private structure area. alloc_private() is a
* convenient macro defined in comedidev.h.
*/
if (alloc_private(dev, sizeof(pcmda12_private)) < 0) {
if (alloc_private(dev, sizeof(struct pcmda12_private)) < 0) {
printk("cannot allocate private data structure\n");
return -ENOMEM;
}
Expand Down

0 comments on commit 0ff1835

Please sign in to comment.