Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325138
b: refs/heads/master
c: 3eb60d7
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten dev authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent b0b60cb commit 28d3ddb
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 967643734582396275efd6183c2b95786993231c
refs/heads/master: 3eb60d7309043831d8d345bd7fc32459598ade8c
8 changes: 3 additions & 5 deletions trunk/drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ a multiple of chanlist_len*convert_arg.
#define PCI9111_RANGE_STATUS_REG 0x08
#define PCI9111_REGISTER_TRIGGER_MODE_CONTROL 0x0A
#define PCI9111_REGISTER_AD_MODE_INTERRUPT_READBACK 0x0A
#define PCI9111_REGISTER_SOFTWARE_TRIGGER 0x0E
#define PCI9111_SOFTWARE_TRIGGER_REG 0x0E
#define PCI9111_REGISTER_INTERRUPT_CONTROL 0x0C
#define PCI9111_8254_BASE_REG 0x40
#define PCI9111_REGISTER_INTERRUPT_CLEAR 0x48
Expand Down Expand Up @@ -149,9 +149,6 @@ a multiple of chanlist_len*convert_arg.
#define pci9111_interrupt_clear() \
outb(0, dev->iobase + PCI9111_REGISTER_INTERRUPT_CLEAR)

#define pci9111_software_trigger() \
outb(0, dev->iobase + PCI9111_REGISTER_SOFTWARE_TRIGGER)

#define pci9111_fifo_reset() do { \
outb(PCI9111_FFEN_SET_FIFO_ENABLE, \
dev->iobase + PCI9111_REGISTER_INTERRUPT_CONTROL); \
Expand Down Expand Up @@ -853,7 +850,8 @@ static int pci9111_ai_insn_read(struct comedi_device *dev,
pci9111_fifo_reset();

for (i = 0; i < insn->n; i++) {
pci9111_software_trigger();
/* Generate a software trigger */
outb(0, dev->iobase + PCI9111_SOFTWARE_TRIGGER_REG);

timeout = PCI9111_AI_INSTANT_READ_TIMEOUT;

Expand Down

0 comments on commit 28d3ddb

Please sign in to comment.