Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197188
b: refs/heads/master
c: aad4029
h: refs/heads/master
v: v3
  • Loading branch information
Mark Rankilor authored and Greg Kroah-Hartman committed May 11, 2010
1 parent b2bd1cd commit c88a719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: f0f29184d84bca9e070e48d61ef5ec8f3ff3cde5
refs/heads/master: aad4029a49e17d8529b8b802d4ecd774ef941f7c
8 changes: 5 additions & 3 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it)
}

if (!dev->board_name) {
printk(KERN_WARNING "BUG: dev->board_name=<%p>\n", dev->board_name);
printk(KERN_WARNING "BUG: dev->board_name=<%p>\n",
dev->board_name);
dev->board_name = "BUG";
}
smp_wmb();
Expand Down Expand Up @@ -374,8 +375,9 @@ static int insn_rw_emulate_bits(struct comedi_device *dev,
if (insn->insn == INSN_WRITE) {
if (!(s->subdev_flags & SDF_WRITABLE))
return -EINVAL;
new_data[0] = 1 << (chan - base_bitfield_channel); /* mask */
new_data[1] = data[0] ? (1 << (chan - base_bitfield_channel)) : 0; /* bits */
new_data[0] = 1 << (chan - base_bitfield_channel); /* mask */
new_data[1] = data[0] ? (1 << (chan - base_bitfield_channel))
: 0; /* bits */
}

ret = s->insn_bits(dev, s, &new_insn, new_data);
Expand Down

0 comments on commit c88a719

Please sign in to comment.