Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354323
b: refs/heads/master
c: fb89942
h: refs/heads/master
i:
  354321: 02ecc03
  354319: 85f9810
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 4, 2013
1 parent 55bbfd8 commit f0ea5c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 25602bd7350dc180128376db9772277818f041f2
refs/heads/master: fb89942cb3bff23a3bf8b799ae6f255a137eb775
7 changes: 2 additions & 5 deletions trunk/drivers/staging/comedi/drivers/ni_daq_dio24.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,14 @@ static const struct dio24_board_struct dio24_boards[] = {
},
};

/*
* Useful for shorthand access to the particular board structure
*/
#define thisboard ((const struct dio24_board_struct *)dev->board_ptr)

struct dio24_private {

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

static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
const struct dio24_board_struct *thisboard = comedi_board(dev);
struct dio24_private *devpriv;
struct comedi_subdevice *s;
unsigned long iobase = 0;
Expand Down Expand Up @@ -159,6 +155,7 @@ static int dio24_attach(struct comedi_device *dev, struct comedi_devconfig *it)

static void dio24_detach(struct comedi_device *dev)
{
const struct dio24_board_struct *thisboard = comedi_board(dev);
struct comedi_subdevice *s;

if (dev->subdevices) {
Expand Down

0 comments on commit f0ea5c9

Please sign in to comment.