Skip to content

Commit

Permalink
staging/comedi: Use dev_ printks in drivers/adl_pci8164.c
Browse files Browse the repository at this point in the history
fixed below checkpatch warning.
- WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(...  to printk(KERN_DEBUG ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent a74b5c5 commit 89a3f11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/staging/comedi/drivers/adl_pci8164.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ static void adl_pci8164_insn_read(struct comedi_device *dev,
}

data[0] = inw(dev->iobase + axis_reg + offset);
printk(KERN_DEBUG "comedi: pci8164 %s read -> "
"%04X:%04X on axis %s\n",
action, data[0], data[1], axisname);
dev_dbg(dev->class_dev,
"pci8164 %s read -> %04X:%04X on axis %s\n",
action, data[0], data[1], axisname);
}

static int adl_pci8164_insn_read_msts(struct comedi_device *dev,
Expand Down Expand Up @@ -170,9 +170,9 @@ static void adl_pci8164_insn_out(struct comedi_device *dev,

outw(data[0], dev->iobase + axis_reg + offset);

printk(KERN_DEBUG "comedi: pci8164 %s write -> "
"%04X:%04X on axis %s\n",
action, data[0], data[1], axisname);
dev_dbg(dev->class_dev,
"pci8164 %s write -> %04X:%04X on axis %s\n",
action, data[0], data[1], axisname);

}

Expand Down

0 comments on commit 89a3f11

Please sign in to comment.