staging/comedi: Use dev_ printks in drivers/adl_pci8164.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Sat, 6 Oct 2012 05:32:40 +0000 (14:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 19:47:57 +0000 (12:47 -0700)
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>
drivers/staging/comedi/drivers/adl_pci8164.c

index 05e06e7ba9f74f44d42d150f8fb4c318b1cbeadb..5a6d6d2e21b87efd816a798a064d09e1a8344a04 100644 (file)
@@ -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,
@@ -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);
 
 }