Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220154
b: refs/heads/master
c: beb5090
h: refs/heads/master
v: v3
  • Loading branch information
Maurice Dawson authored and Greg Kroah-Hartman committed Oct 7, 2010
1 parent 9346a26 commit a073489
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 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: 960ea740a2c4f2da42fee2cdf7201ea6c477486c
refs/heads/master: beb50909a748b25eb3118cbc2942442208fd9017
21 changes: 9 additions & 12 deletions trunk/drivers/staging/comedi/drivers/adl_pci9118.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,12 +1575,12 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
}

/* use sample&hold signal? */
if (cmd->convert_src == TRIG_NOW) {
if (cmd->convert_src == TRIG_NOW)
devpriv->usessh = 1;
} /* yes */
else {
/* yes */
else
devpriv->usessh = 0;
} /* no */
/* no */

DPRINTK("1 neverending=%d scans=%u usessh=%d ai_startstop=0x%2x\n",
devpriv->ai_neverending, devpriv->ai_scans, devpriv->usessh,
Expand All @@ -1597,9 +1597,8 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
devpriv->usedma = 1;
if ((cmd->flags & TRIG_WAKE_EOS) &&
(devpriv->ai_n_scanlen == 1)) {
if (cmd->convert_src == TRIG_NOW) {
if (cmd->convert_src == TRIG_NOW)
devpriv->ai_add_back = 1;
}
if (cmd->convert_src == TRIG_TIMER) {
devpriv->usedma = 0;
/*
Expand Down Expand Up @@ -1694,11 +1693,10 @@ static int pci9118_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
(cmd->scan_begin_src == TRIG_INT)) &&
(cmd->convert_src == TRIG_TIMER)) {
/* both timer is used for one time */
if (cmd->scan_begin_src == TRIG_EXT) {
if (cmd->scan_begin_src == TRIG_EXT)
devpriv->ai_do = 4;
} else {
else
devpriv->ai_do = 1;
}
pci9118_calc_divisors(devpriv->ai_do, dev, s,
&cmd->scan_begin_arg, &cmd->convert_arg,
devpriv->ai_flags,
Expand Down Expand Up @@ -2212,11 +2210,10 @@ static int pci9118_attach(struct comedi_device *dev,

opt_bus = it->options[0];
opt_slot = it->options[1];
if (it->options[3] & 1) {
if (it->options[3] & 1)
master = 0; /* user don't want use bus master */
} else {
else
master = 1;
}

ret = alloc_private(dev, sizeof(struct pci9118_private));
if (ret < 0) {
Expand Down

0 comments on commit a073489

Please sign in to comment.