Skip to content

Commit

Permalink
Staging: comedi: Adjusted some long line lengths in drivers.c
Browse files Browse the repository at this point in the history
This patch fixes some long line lengths in drivers.c that checkpatch.pl was
complaining about

Signed-off-by: Mark Rankilor <reodge@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mark Rankilor authored and Greg Kroah-Hartman committed May 11, 2010
1 parent f0f2918 commit aad4029
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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 aad4029

Please sign in to comment.