Skip to content

Commit

Permalink
[media] cx25821: remove unnecessary debug messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 16, 2013
1 parent bad1f29 commit b6f8727
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/media/pci/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand All @@ -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;
}

Expand All @@ -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);
Expand Down

0 comments on commit b6f8727

Please sign in to comment.