Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141532
b: refs/heads/master
c: 1ade315
h: refs/heads/master
v: v3
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 714a1f3 commit ff54694
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: 47c6e95869228a8b464174ee0e85904a92b7baf4
refs/heads/master: 1ade3157f4ea4e4a090097e2b2b816a627c32a32
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/drivers/adq12b.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ static const struct adq12b_board adq12b_boards[] = {

#define thisboard ((const struct adq12b_board *)dev->board_ptr)

typedef struct{
struct adq12b_private {
int unipolar; /* option 2 of comedi_config (1 is iobase) */
int differential; /* option 3 of comedi_config */
int last_channel;
int last_range;
unsigned int digital_state;
}adq12b_private;
};

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

/*
* The struct comedi_driver structure tells the Comedi core module
Expand Down Expand Up @@ -219,7 +219,7 @@ static int adq12b_attach(struct comedi_device *dev,struct comedi_devconfig *it)
* Allocate the private structure area. alloc_private() is a
* convenient macro defined in comedidev.h.
*/
if(alloc_private(dev, sizeof(adq12b_private)) < 0)
if(alloc_private(dev, sizeof(struct adq12b_private)) < 0)
return -ENOMEM;

/* fill in devpriv structure */
Expand Down

0 comments on commit ff54694

Please sign in to comment.