Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354173
b: refs/heads/master
c: 99c9fa4
h: refs/heads/master
i:
  354171: a2976cd
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jan 25, 2013
1 parent b301d58 commit bd50427
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 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: 53b28a23532f203f4b8287fad2461886088a9158
refs/heads/master: 99c9fa48b6bbc640066c414d6b413a1f1b4aa857
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ You should also find the complete GPL in the COPYING file accompanying this sour
#define ADDIDATA_TIMER 0
#define ADDIDATA_WATCHDOG 2

/* ANALOG OUTPUT RANGE */
static struct comedi_lrange range_apci3501_ao = {
2, {
BIP_RANGE(10),
UNI_RANGE(10)
}
};

/*
+----------------------------------------------------------------------------+
| Function Name : int i_APCI3501_ConfigAnalogOutput |
Expand Down
9 changes: 8 additions & 1 deletion trunk/drivers/staging/comedi/drivers/addi_apci_3501.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ struct apci3501_private {
unsigned char b_InterruptMode;
};

static struct comedi_lrange apci3501_ao_range = {
2, {
BIP_RANGE(10),
UNI_RANGE(10)
}
};

#include "addi-data/hwdrv_apci3501.c"

static int apci3501_di_insn_bits(struct comedi_device *dev,
Expand Down Expand Up @@ -274,7 +281,7 @@ static int apci3501_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = ao_n_chan;
s->maxdata = 0x3fff;
s->range_table = &range_apci3501_ao;
s->range_table = &apci3501_ao_range;
s->insn_config = i_APCI3501_ConfigAnalogOutput;
s->insn_write = i_APCI3501_WriteAnalogOutput;
} else {
Expand Down

0 comments on commit bd50427

Please sign in to comment.