Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324594
b: refs/heads/master
c: accff35
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Aug 17, 2012
1 parent ea1e8e1 commit 9dbb44d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: c8dd8e934087cc0ecf7033786ee00cff4ebcba4f
refs/heads/master: accff3509e947a4c1f7c88aec7e41d14f6c6f51e
8 changes: 2 additions & 6 deletions trunk/drivers/staging/comedi/drivers/cb_pcimdda.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,12 @@ Configuration Options:
struct cb_pcimdda_board {
const char *name;
unsigned short device_id;
int ao_chans;
int ao_bits;
};

static const struct cb_pcimdda_board cb_pcimdda_boards[] = {
{
.name = "cb_pcimdda06-16",
.device_id = PCI_ID_PCIM_DDA06_16,
.ao_chans = 6,
.ao_bits = 16,
}
};

Expand Down Expand Up @@ -258,8 +254,8 @@ static int cb_pcimdda_attach(struct comedi_device *dev,
/* analog output subdevice */
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
s->n_chan = thisboard->ao_chans;
s->maxdata = (1 << thisboard->ao_bits) - 1;
s->n_chan = 6;
s->maxdata = 0xffff;
/* this is hard-coded here */
if (it->options[2])
s->range_table = &range_bipolar10;
Expand Down

0 comments on commit 9dbb44d

Please sign in to comment.