Commit 66ae18fa authored by YAMANE Toshiaki's avatar YAMANE Toshiaki Committed by Greg Kroah-Hartman

staging/comedi: Use dev_ printks in drivers/ni_pcimio.c

fixed below checkpatch warning.
- WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(...  to printk(KERN_WARNING ...
Signed-off-by: default avatarYAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 351be7c9
...@@ -1384,8 +1384,9 @@ static void m_series_stc_writew(struct comedi_device *dev, uint16_t data, ...@@ -1384,8 +1384,9 @@ static void m_series_stc_writew(struct comedi_device *dev, uint16_t data,
/* FIXME: DIO_Output_Register (16 bit reg) is replaced by M_Offset_Static_Digital_Output (32 bit) /* FIXME: DIO_Output_Register (16 bit reg) is replaced by M_Offset_Static_Digital_Output (32 bit)
and M_Offset_SCXI_Serial_Data_Out (8 bit) */ and M_Offset_SCXI_Serial_Data_Out (8 bit) */
default: default:
printk(KERN_WARNING "%s: bug! unhandled register=0x%x in switch.\n", dev_warn(dev->class_dev,
__func__, reg); "%s: bug! unhandled register=0x%x in switch.\n",
__func__, reg);
BUG(); BUG();
return; return;
break; break;
...@@ -1421,8 +1422,9 @@ static uint16_t m_series_stc_readw(struct comedi_device *dev, int reg) ...@@ -1421,8 +1422,9 @@ static uint16_t m_series_stc_readw(struct comedi_device *dev, int reg)
offset = M_Offset_G01_Status; offset = M_Offset_G01_Status;
break; break;
default: default:
printk(KERN_WARNING "%s: bug! unhandled register=0x%x in switch.\n", dev_warn(dev->class_dev,
__func__, reg); "%s: bug! unhandled register=0x%x in switch.\n",
__func__, reg);
BUG(); BUG();
return 0; return 0;
break; break;
...@@ -1465,8 +1467,9 @@ static void m_series_stc_writel(struct comedi_device *dev, uint32_t data, ...@@ -1465,8 +1467,9 @@ static void m_series_stc_writel(struct comedi_device *dev, uint32_t data,
offset = M_Offset_G1_Load_B; offset = M_Offset_G1_Load_B;
break; break;
default: default:
printk(KERN_WARNING "%s: bug! unhandled register=0x%x in switch.\n", dev_warn(dev->class_dev,
__func__, reg); "%s: bug! unhandled register=0x%x in switch.\n",
__func__, reg);
BUG(); BUG();
return; return;
break; break;
...@@ -1493,8 +1496,9 @@ static uint32_t m_series_stc_readl(struct comedi_device *dev, int reg) ...@@ -1493,8 +1496,9 @@ static uint32_t m_series_stc_readl(struct comedi_device *dev, int reg)
offset = M_Offset_G1_Save; offset = M_Offset_G1_Save;
break; break;
default: default:
printk(KERN_WARNING "%s: bug! unhandled register=0x%x in switch.\n", dev_warn(dev->class_dev,
__func__, reg); "%s: bug! unhandled register=0x%x in switch.\n",
__func__, reg);
BUG(); BUG();
return 0; return 0;
break; break;
......
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