mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
[media] staging/media: Use dev_ printks in lirc/igorplugusb.c
fixed below checkpatch warnings. - WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
5c77dc40c9
commit
ce24c25b97
@ -223,8 +223,8 @@ static int unregister_from_lirc(struct igorplug *ir)
|
|||||||
int devnum;
|
int devnum;
|
||||||
|
|
||||||
if (!ir) {
|
if (!ir) {
|
||||||
printk(KERN_ERR "%s: called with NULL device struct!\n",
|
dev_err(&ir->usbdev->dev,
|
||||||
__func__);
|
"%s: called with NULL device struct!\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,8 +232,8 @@ static int unregister_from_lirc(struct igorplug *ir)
|
|||||||
d = ir->d;
|
d = ir->d;
|
||||||
|
|
||||||
if (!d) {
|
if (!d) {
|
||||||
printk(KERN_ERR "%s: called with NULL lirc driver struct!\n",
|
dev_err(&ir->usbdev->dev,
|
||||||
__func__);
|
"%s: called with NULL lirc driver struct!\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,7 +347,7 @@ static int igorplugusb_remote_poll(void *data, struct lirc_buffer *buf)
|
|||||||
if (ir->buf_in[2] == 0)
|
if (ir->buf_in[2] == 0)
|
||||||
send_fragment(ir, buf, DEVICE_HEADERLEN, ret);
|
send_fragment(ir, buf, DEVICE_HEADERLEN, ret);
|
||||||
else {
|
else {
|
||||||
printk(KERN_WARNING DRIVER_NAME
|
dev_warn(&ir->usbdev->dev,
|
||||||
"[%d]: Device buffer overrun.\n", ir->devnum);
|
"[%d]: Device buffer overrun.\n", ir->devnum);
|
||||||
/* HHHNNNNNNNNNNNOOOOOOOO H = header
|
/* HHHNNNNNNNNNNNOOOOOOOO H = header
|
||||||
<---[2]---> N = newer
|
<---[2]---> N = newer
|
||||||
|
Loading…
Reference in New Issue
Block a user