Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281374
b: refs/heads/master
c: a96b98f
h: refs/heads/master
v: v3
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Dec 14, 2011
1 parent f552738 commit 52caa66
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: 351a1d35d61e7cb5fd0bebddb851973a12a0b0e1
refs/heads/master: a96b98f218fa7c854a591f4eb3cff90c13036d25
8 changes: 3 additions & 5 deletions trunk/drivers/staging/comedi/drivers/ni_at_a2150.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,8 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
outw(trigger_bits, dev->iobase + TRIGGER_REG);

/* start acquisition for soft trigger */
if (cmd->start_src == TRIG_NOW) {
if (cmd->start_src == TRIG_NOW)
outw(0, dev->iobase + FIFO_START_REG);
}
#ifdef A2150_DEBUG
ni_dump_regs(dev);
#endif
Expand Down Expand Up @@ -860,11 +859,10 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
case TRIG_ROUND_NEAREST:
default:
/* if least upper bound is better approximation */
if (lub - *period < *period - glb) {
if (lub - *period < *period - glb)
*period = lub;
} else {
else
*period = glb;
}
break;
case TRIG_ROUND_UP:
*period = lub;
Expand Down

0 comments on commit 52caa66

Please sign in to comment.