Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325116
b: refs/heads/master
c: dc79022
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 11, 2012
1 parent a97d4c3 commit 8198bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 83dcfee0f2b29e689f79f259bde1c1dc34772b13
refs/heads/master: dc79022aefaba02ab85edf7df70cd35164888523
10 changes: 3 additions & 7 deletions trunk/drivers/staging/comedi/drivers/adl_pci9111.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ a multiple of chanlist_len*convert_arg.

#define PCI9111_REGISTER_AD_FIFO_VALUE 0x00 /* AD Data stored
in FIFO */
#define PCI9111_REGISTER_DA_OUTPUT 0x00
#define PCI9111_AO_REG 0x00
#define PCI9111_DIO_REG 0x02
#define PCI9111_REGISTER_EXTENDED_IO_PORTS 0x04
#define PCI9111_REGISTER_AD_CHANNEL_CONTROL 0x06 /* Channel
Expand Down Expand Up @@ -229,11 +229,6 @@ a multiple of chanlist_len*convert_arg.
&PCI9111_HR_AI_RESOLUTION_MASK) \
^ PCI9111_HR_AI_RESOLUTION_2_CMP_BIT)

#define pci9111_ao_set_data(data) \
outw(data&PCI9111_AO_RESOLUTION_MASK, \
dev->iobase + PCI9111_REGISTER_DA_OUTPUT)


static const struct comedi_lrange pci9111_hr_ai_range = {
5,
{
Expand Down Expand Up @@ -1055,7 +1050,8 @@ pci9111_ao_insn_write(struct comedi_device *dev,
int i;

for (i = 0; i < insn->n; i++) {
pci9111_ao_set_data(data[i]);
outw(data[i] & PCI9111_AO_RESOLUTION_MASK,
dev->iobase + PCI9111_AO_REG);
dev_private->ao_readback = data[i];
}

Expand Down

0 comments on commit 8198bc3

Please sign in to comment.