Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338303
b: refs/heads/master
c: 7b5dd1c
h: refs/heads/master
i:
  338301: b2ddfbc
  338299: 4ae51ee
  338295: cce883f
  338287: a3d2256
  338271: 95e6f31
  338239: bae8966
  338175: ed0f449
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Nov 30, 2012
1 parent fe059f4 commit 0b7b634
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 7180eb30deee6c05b8924348a7ac7d4deefcf56e
refs/heads/master: 7b5dd1cc988cf34341319c81bb0c7ddc21a2f8ee
10 changes: 7 additions & 3 deletions trunk/drivers/staging/comedi/drivers/addi_apci_2032.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,16 @@ static int i_APCI2032_StartStopWriteWatchdog(struct comedi_device *dev,
return insn->n;
}

static int i_APCI2032_ReadWatchdog(struct comedi_device *dev,
static int apci1516_wdog_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
unsigned int *data)
{
data[0] = inl(dev->iobase + APCI2032_WDOG_STATUS_REG) & 0x1;
int i;

for (i = 0; i < insn->n; i++)
data[i] = inl(dev->iobase + APCI2032_WDOG_STATUS_REG);

return insn->n;
}

Expand Down Expand Up @@ -268,7 +272,7 @@ static int apci2032_auto_attach(struct comedi_device *dev,
s->len_chanlist = 1;
s->range_table = &range_digital;
s->insn_write = i_APCI2032_StartStopWriteWatchdog;
s->insn_read = i_APCI2032_ReadWatchdog;
s->insn_read = apci1516_wdog_insn_read;
s->insn_config = i_APCI2032_ConfigWatchdog;

apci2032_reset(dev);
Expand Down

0 comments on commit 0b7b634

Please sign in to comment.