Skip to content

Commit

Permalink
Staging: comedi: fix printk issue in pcmuio.c
Browse files Browse the repository at this point in the history
This is a patch to the pcmuio.c file that fixes up a printk
warning found by the checkpatch.pl tool.

Converted printks to dev_dbg().

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Dec 14, 2011
1 parent deb0429 commit 976fe5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/staging/comedi/drivers/pcmuio.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ static int pcmuio_dio_insn_bits(struct comedi_device *dev,

#ifdef DAMMIT_ITS_BROKEN
/* DEBUG */
printk("write mask: %08x data: %08x\n", data[0], data[1]);
dev_dbg(dev->hw_dev, "write mask: %08x data: %08x\n", data[0],
data[1]);
#endif

s->state = 0;
Expand Down Expand Up @@ -537,7 +538,7 @@ static int pcmuio_dio_insn_bits(struct comedi_device *dev,
}
#ifdef DAMMIT_ITS_BROKEN
/* DEBUG */
printk("data_out_byte %02x\n", (unsigned)byte);
dev_dbg(dev->hw_dev, "data_out_byte %02x\n", (unsigned)byte);
#endif
/* save the digital input lines for this byte.. */
s->state |= ((unsigned int)byte) << offset;
Expand All @@ -548,7 +549,8 @@ static int pcmuio_dio_insn_bits(struct comedi_device *dev,

#ifdef DAMMIT_ITS_BROKEN
/* DEBUG */
printk("s->state %08x data_out %08x\n", s->state, data[1]);
dev_dbg(dev->hw_dev, "s->state %08x data_out %08x\n", s->state,
data[1]);
#endif

return 2;
Expand Down

0 comments on commit 976fe5a

Please sign in to comment.