Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353917
b: refs/heads/master
c: b652bd8
h: refs/heads/master
i:
  353915: c7c5e31
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 1978d7c commit b4c8437
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: 6bf9a3babe630a9972b28fd3bb7d2cfcd40e6409
refs/heads/master: b652bd83a0528c43e935cb6f2f8df024b7a85c5e
8 changes: 4 additions & 4 deletions trunk/drivers/staging/comedi/drivers/addi_apci_2032.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int apci2032_int_insn_bits(struct comedi_device *dev,
struct comedi_insn *insn,
unsigned int *data)
{
data[1] = s->state;
data[1] = inl(dev->iobase + APCI2032_INT_STATUS_REG) & 3;
return insn->n;
}

Expand Down Expand Up @@ -245,10 +245,10 @@ static irqreturn_t apci2032_interrupt(int irq, void *d)
if (!val)
return IRQ_NONE;

s->state = inl(dev->iobase + APCI2032_INT_STATUS_REG);
outl(0x0, dev->iobase + APCI2032_INT_CTRL_REG);
val = inl(dev->iobase + APCI2032_INT_STATUS_REG) & 3;
outl(0x00, dev->iobase + APCI2032_INT_CTRL_REG);

if (comedi_buf_put(s->async, s->state))
if (comedi_buf_put(s->async, val))
s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
else
s->async->events |= COMEDI_CB_OVERFLOW;
Expand Down

0 comments on commit b4c8437

Please sign in to comment.