Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141622
b: refs/heads/master
c: 344d23e
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent cf8e3f0 commit 899112d
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: adf328432473a9baf2b7b0a50864d9736890fa8a
refs/heads/master: 344d23e931fdb982489753e5189d9c60ffbdfd67
10 changes: 6 additions & 4 deletions trunk/drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ static const dio24_board dio24_boards[] = {
*/
#define thisboard ((const dio24_board *)dev->board_ptr)

typedef struct {
struct dio24_private {

int data; /* number of data points left to be taken */
} dio24_private;
};


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

static struct comedi_driver driver_dio24 = {
driver_name:"ni_daq_dio24",
Expand All @@ -117,7 +119,7 @@ static int dio24_attach(struct comedi_device * dev, struct comedi_devconfig * it
struct pcmcia_device *link;

/* allocate and initialize dev->private */
if (alloc_private(dev, sizeof(dio24_private)) < 0)
if (alloc_private(dev, sizeof(struct dio24_private)) < 0)
return -ENOMEM;

// get base address, irq etc. based on bustype
Expand Down

0 comments on commit 899112d

Please sign in to comment.