Commit 7a647b9e authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix printk issue in das1800.c

This is a patch to the das1800.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Converted printks to dev_dbg().
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1e3a2875
...@@ -835,7 +835,7 @@ static int das1800_probe(struct comedi_device *dev) ...@@ -835,7 +835,7 @@ static int das1800_probe(struct comedi_device *dev)
case 0x3: case 0x3:
if (board == das1801st_da || board == das1802st_da || if (board == das1801st_da || board == das1802st_da ||
board == das1701st_da || board == das1702st_da) { board == das1701st_da || board == das1702st_da) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
...@@ -845,7 +845,7 @@ static int das1800_probe(struct comedi_device *dev) ...@@ -845,7 +845,7 @@ static int das1800_probe(struct comedi_device *dev)
break; break;
case 0x4: case 0x4:
if (board == das1802hr_da || board == das1702hr_da) { if (board == das1802hr_da || board == das1702hr_da) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
...@@ -856,7 +856,7 @@ static int das1800_probe(struct comedi_device *dev) ...@@ -856,7 +856,7 @@ static int das1800_probe(struct comedi_device *dev)
case 0x5: case 0x5:
if (board == das1801ao || board == das1802ao || if (board == das1801ao || board == das1802ao ||
board == das1701ao || board == das1702ao) { board == das1701ao || board == das1702ao) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
...@@ -866,17 +866,18 @@ static int das1800_probe(struct comedi_device *dev) ...@@ -866,17 +866,18 @@ static int das1800_probe(struct comedi_device *dev)
break; break;
case 0x6: case 0x6:
if (board == das1802hr || board == das1702hr) { if (board == das1802hr || board == das1702hr) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
printk(" Board model (probed, not recommended): das-1802hr\n"); printk
(" Board model (probed, not recommended): das-1802hr\n");
return das1802hr; return das1802hr;
break; break;
case 0x7: case 0x7:
if (board == das1801st || board == das1802st || if (board == das1801st || board == das1802st ||
board == das1701st || board == das1702st) { board == das1701st || board == das1702st) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
...@@ -886,7 +887,7 @@ static int das1800_probe(struct comedi_device *dev) ...@@ -886,7 +887,7 @@ static int das1800_probe(struct comedi_device *dev)
break; break;
case 0x8: case 0x8:
if (board == das1801hc || board == das1802hc) { if (board == das1801hc || board == das1802hc) {
printk(" Board model: %s\n", dev_dbg(dev->hw_dev, "Board model: %s\n",
das1800_boards[board].name); das1800_boards[board].name);
return board; return board;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment