Commit 7d7cdb4f authored by Abdun Nihaal's avatar Abdun Nihaal Committed by Greg Kroah-Hartman

staging: most: video: remove debugging code

This patch removes debugging code in video.c that causes the following
checkpatch warning:

WARNING: Prefer using '\"%s...\", __func__' to using function's name in a string
Signed-off-by: default avatarAbdun Nihaal <abdun.nihaal@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 58391efd
...@@ -73,8 +73,6 @@ static int comp_vdev_open(struct file *filp) ...@@ -73,8 +73,6 @@ static int comp_vdev_open(struct file *filp)
struct most_video_dev *mdev = video_drvdata(filp); struct most_video_dev *mdev = video_drvdata(filp);
struct comp_fh *fh; struct comp_fh *fh;
v4l2_info(&mdev->v4l2_dev, "comp_vdev_open()\n");
switch (vdev->vfl_type) { switch (vdev->vfl_type) {
case VFL_TYPE_GRABBER: case VFL_TYPE_GRABBER:
break; break;
...@@ -122,8 +120,6 @@ static int comp_vdev_close(struct file *filp) ...@@ -122,8 +120,6 @@ static int comp_vdev_close(struct file *filp)
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
struct mbo *mbo, *tmp; struct mbo *mbo, *tmp;
v4l2_info(&mdev->v4l2_dev, "comp_vdev_close()\n");
/* /*
* We need to put MBOs back before we call most_stop_channel() * We need to put MBOs back before we call most_stop_channel()
* to deallocate MBOs. * to deallocate MBOs.
...@@ -250,8 +246,6 @@ static int vidioc_querycap(struct file *file, void *priv, ...@@ -250,8 +246,6 @@ static int vidioc_querycap(struct file *file, void *priv,
struct comp_fh *fh = priv; struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
v4l2_info(&mdev->v4l2_dev, "vidioc_querycap()\n");
strlcpy(cap->driver, "v4l2_component", sizeof(cap->driver)); strlcpy(cap->driver, "v4l2_component", sizeof(cap->driver));
strlcpy(cap->card, "MOST", sizeof(cap->card)); strlcpy(cap->card, "MOST", sizeof(cap->card));
snprintf(cap->bus_info, sizeof(cap->bus_info), snprintf(cap->bus_info, sizeof(cap->bus_info),
...@@ -270,8 +264,6 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv, ...@@ -270,8 +264,6 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
struct comp_fh *fh = priv; struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
v4l2_info(&mdev->v4l2_dev, "vidioc_enum_fmt_vid_cap() %d\n", f->index);
if (f->index) if (f->index)
return -EINVAL; return -EINVAL;
...@@ -289,8 +281,6 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, ...@@ -289,8 +281,6 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
struct comp_fh *fh = priv; struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
v4l2_info(&mdev->v4l2_dev, "vidioc_g_fmt_vid_cap()\n");
comp_set_format_struct(f); comp_set_format_struct(f);
return 0; return 0;
} }
...@@ -318,8 +308,6 @@ static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm) ...@@ -318,8 +308,6 @@ static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
struct comp_fh *fh = priv; struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
v4l2_info(&mdev->v4l2_dev, "vidioc_g_std()\n");
*norm = V4L2_STD_UNKNOWN; *norm = V4L2_STD_UNKNOWN;
return 0; return 0;
} }
...@@ -355,8 +343,6 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int index) ...@@ -355,8 +343,6 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int index)
struct comp_fh *fh = priv; struct comp_fh *fh = priv;
struct most_video_dev *mdev = fh->mdev; struct most_video_dev *mdev = fh->mdev;
v4l2_info(&mdev->v4l2_dev, "vidioc_s_input(%d)\n", index);
if (index >= V4L2_CMP_MAX_INPUT) if (index >= V4L2_CMP_MAX_INPUT)
return -EINVAL; return -EINVAL;
mdev->ctrl_input = index; mdev->ctrl_input = index;
...@@ -435,8 +421,6 @@ static int comp_register_videodev(struct most_video_dev *mdev) ...@@ -435,8 +421,6 @@ static int comp_register_videodev(struct most_video_dev *mdev)
{ {
int ret; int ret;
v4l2_info(&mdev->v4l2_dev, "comp_register_videodev()\n");
init_waitqueue_head(&mdev->wait_data); init_waitqueue_head(&mdev->wait_data);
/* allocate and fill v4l2 video struct */ /* allocate and fill v4l2 video struct */
...@@ -465,8 +449,6 @@ static int comp_register_videodev(struct most_video_dev *mdev) ...@@ -465,8 +449,6 @@ static int comp_register_videodev(struct most_video_dev *mdev)
static void comp_unregister_videodev(struct most_video_dev *mdev) static void comp_unregister_videodev(struct most_video_dev *mdev)
{ {
v4l2_info(&mdev->v4l2_dev, "comp_unregister_videodev()\n");
video_unregister_device(mdev->vdev); video_unregister_device(mdev->vdev);
} }
...@@ -485,8 +467,6 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx, ...@@ -485,8 +467,6 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx,
int ret; int ret;
struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); struct most_video_dev *mdev = get_comp_dev(iface, channel_idx);
pr_info("comp_probe_channel(%s)\n", name);
if (mdev) { if (mdev) {
pr_err("channel already linked\n"); pr_err("channel already linked\n");
return -EEXIST; return -EEXIST;
...@@ -531,7 +511,6 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx, ...@@ -531,7 +511,6 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx,
spin_lock_irq(&list_lock); spin_lock_irq(&list_lock);
list_add(&mdev->list, &video_devices); list_add(&mdev->list, &video_devices);
spin_unlock_irq(&list_lock); spin_unlock_irq(&list_lock);
v4l2_info(&mdev->v4l2_dev, "comp_probe_channel() done\n");
return 0; return 0;
err_unreg: err_unreg:
...@@ -550,8 +529,6 @@ static int comp_disconnect_channel(struct most_interface *iface, ...@@ -550,8 +529,6 @@ static int comp_disconnect_channel(struct most_interface *iface,
return -ENOENT; return -ENOENT;
} }
v4l2_info(&mdev->v4l2_dev, "comp_disconnect_channel()\n");
spin_lock_irq(&list_lock); spin_lock_irq(&list_lock);
list_del(&mdev->list); list_del(&mdev->list);
spin_unlock_irq(&list_lock); spin_unlock_irq(&list_lock);
......
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