summaryrefslogtreecommitdiff
path: root/drivers/media/usb/cx231xx/cx231xx-dvb.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-02 10:21:44 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-11-03 17:57:54 (GMT)
commitb7085c08647598aafbf8f6223ebcdd413745449c (patch)
tree7b5cd24fc88f58be58b0346542dac2c44c710d05 /drivers/media/usb/cx231xx/cx231xx-dvb.c
parent77e97ba2da47fe75bb9a835bb43a29e046c60f99 (diff)
downloadlinux-b7085c08647598aafbf8f6223ebcdd413745449c.tar.xz
[media] cx231xx: convert from pr_foo to dev_foo
Replace all pr_foo occurrences by dev_foo, as this is the recommended way for drivers. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/cx231xx/cx231xx-dvb.c')
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-dvb.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c
index b6af923..044ad35 100644
--- a/drivers/media/usb/cx231xx/cx231xx-dvb.c
+++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c
@@ -22,7 +22,6 @@
#include "cx231xx.h"
#include <linux/kernel.h>
#include <linux/slab.h>
-#include <linux/usb.h>
#include <media/v4l2-common.h>
#include <media/videobuf-vmalloc.h>
@@ -265,7 +264,7 @@ static int start_streaming(struct cx231xx_dvb *dvb)
struct cx231xx *dev = dvb->adapter.priv;
if (dev->USE_ISO) {
- pr_debug("DVB transfer mode is ISO.\n");
+ dev_dbg(&dev->udev->dev, "DVB transfer mode is ISO.\n");
cx231xx_set_alt_setting(dev, INDEX_TS1, 4);
rc = cx231xx_set_mode(dev, CX231XX_DIGITAL_MODE);
if (rc < 0)
@@ -276,7 +275,7 @@ static int start_streaming(struct cx231xx_dvb *dvb)
dev->ts1_mode.max_pkt_size,
dvb_isoc_copy);
} else {
- pr_debug("DVB transfer mode is BULK.\n");
+ dev_dbg(&dev->udev->dev, "DVB transfer mode is BULK.\n");
cx231xx_set_alt_setting(dev, INDEX_TS1, 0);
rc = cx231xx_set_mode(dev, CX231XX_DIGITAL_MODE);
if (rc < 0)
@@ -430,14 +429,17 @@ int cx231xx_reset_analog_tuner(struct cx231xx *dev)
if (dops->init != NULL && !dev->xc_fw_load_done) {
- pr_debug("Reloading firmware for XC5000\n");
+ dev_dbg(&dev->udev->dev,
+ "Reloading firmware for XC5000\n");
status = dops->init(dev->dvb->frontend);
if (status == 0) {
dev->xc_fw_load_done = 1;
- pr_debug("XC5000 firmware download completed\n");
+ dev_dbg(&dev->udev->dev,
+ "XC5000 firmware download completed\n");
} else {
dev->xc_fw_load_done = 0;
- pr_debug("XC5000 firmware download failed !!!\n");
+ dev_dbg(&dev->udev->dev,
+ "XC5000 firmware download failed !!!\n");
}
}