Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354379
b: refs/heads/master
c: 62100fe
h: refs/heads/master
i:
  354377: 8473850
  354375: ad5db2f
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Feb 5, 2013
1 parent dd49556 commit 6c9fb1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 491cc0b042c2c2e7db0b2013e802f1d0124d1611
refs/heads/master: 62100fefbc4f7f45149df1f537de17b4acf01391
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/quatech_daqp_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,11 +671,10 @@ static int daqp_ao_insn_write(struct comedi_device *dev,
return 1;
}

/* Digital input routine */

static int daqp_di_insn_read(struct comedi_device *dev,
static int daqp_di_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
struct comedi_insn *insn,
unsigned int *data)
{
struct daqp_private *devpriv = dev->private;

Expand All @@ -684,7 +683,7 @@ static int daqp_di_insn_read(struct comedi_device *dev,

data[0] = inb(dev->iobase + DAQP_DIGITAL_IO);

return 1;
return insn->n;
}

/* Digital output routine */
Expand Down Expand Up @@ -758,7 +757,8 @@ static int daqp_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_DI;
s->subdev_flags = SDF_READABLE;
s->n_chan = 1;
s->insn_read = daqp_di_insn_read;
s->maxdata = 1;
s->insn_bits = daqp_di_insn_bits;

s = &dev->subdevices[3];
s->type = COMEDI_SUBD_DO;
Expand Down

0 comments on commit 6c9fb1c

Please sign in to comment.