Commit 18661234 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] v4l: omap4iss: Add module debug parameter

The parameter is used to initialize the video node debug field and
activate the V4L debug infrastructure.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 2b44ac9e
......@@ -25,6 +25,9 @@
#include "iss_video.h"
#include "iss.h"
static unsigned debug;
module_param(debug, uint, 0644);
MODULE_PARM_DESC(debug, "activates debug info");
/* -----------------------------------------------------------------------------
* Helper functions
......@@ -1043,6 +1046,8 @@ static int iss_video_open(struct file *file)
if (handle == NULL)
return -ENOMEM;
video->video.debug = debug;
v4l2_fh_init(&handle->vfh, &video->video);
v4l2_fh_add(&handle->vfh);
......
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