]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
[media] cx25821: remove unnecessary debug messages
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 13 Apr 2013 11:44:56 +0000 (08:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Apr 2013 21:05:00 +0000 (18:05 -0300)
The v4l2 core already has support for debugging ioctls/file operations.
No need to do that again.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/cx25821/cx25821-video.c

index 0c11f314c62e24749561d5e19b30b0bc565a1302..6088ee996b92243fb70027fd884ec08a383d0d59 100644 (file)
@@ -633,9 +633,6 @@ static int video_open(struct file *file)
        u32 pix_format;
        int ch_id;
 
-       dprintk(1, "open dev=%s type=%s\n", video_device_node_name(vdev),
-                       v4l2_type_names[type]);
-
        for (ch_id = 0; ch_id < MAX_VID_CHANNEL_NUM - 1; ch_id++)
                if (&dev->channels[ch_id].vdev == vdev)
                        break;
@@ -922,7 +919,6 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
                        return err;
        }
 
-       dprintk(2, "%s()\n", __func__);
        err = cx25821_vidioc_try_fmt_vid_cap(file, priv, f);
 
        if (0 != err)
@@ -956,8 +952,6 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
        dev->channels[fh->channel_id].cif_width = fh->width;
        medusa_set_resolution(dev, fh->width, SRAM_CH00);
 
-       dprintk(2, "%s(): width=%d height=%d field=%d\n", __func__, fh->width,
-               fh->height, fh->vidq.field);
        v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, V4L2_MBUS_FMT_FIXED);
        cx25821_call_all(dev, video, s_mbus_fmt, &mbus_fmt);
 
@@ -1079,8 +1073,6 @@ int cx25821_vidioc_s_std(struct file *file, void *priv, v4l2_std_id tvnorms)
        struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
        int err;
 
-       dprintk(1, "%s()\n", __func__);
-
        if (fh) {
                err = v4l2_prio_check(&dev->channels[fh->channel_id].prio,
                                      fh->prio);
@@ -1110,7 +1102,6 @@ static int cx25821_vidioc_enum_input(struct file *file, void *priv,
        };
        struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
        unsigned int n;
-       dprintk(1, "%s()\n", __func__);
 
        n = i->index;
        if (n >= CX25821_NR_INPUT)
@@ -1131,7 +1122,6 @@ static int cx25821_vidioc_g_input(struct file *file, void *priv, unsigned int *i
        struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
 
        *i = dev->input;
-       dprintk(1, "%s(): returns %d\n", __func__, *i);
        return 0;
 }
 
@@ -1141,8 +1131,6 @@ static int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
        struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
        int err;
 
-       dprintk(1, "%s(%d)\n", __func__, i);
-
        if (fh) {
                err = v4l2_prio_check(&dev->channels[fh->channel_id].prio,
                                      fh->prio);