[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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Laurent Pinchart 2014-06-03 17:49:41 -03:00 committed by Mauro Carvalho Chehab
parent 2b44ac9e84
commit 1866123425

View File

@ -25,6 +25,9 @@
#include "iss_video.h" #include "iss_video.h"
#include "iss.h" #include "iss.h"
static unsigned debug;
module_param(debug, uint, 0644);
MODULE_PARM_DESC(debug, "activates debug info");
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* Helper functions * Helper functions
@ -1043,6 +1046,8 @@ static int iss_video_open(struct file *file)
if (handle == NULL) if (handle == NULL)
return -ENOMEM; return -ENOMEM;
video->video.debug = debug;
v4l2_fh_init(&handle->vfh, &video->video); v4l2_fh_init(&handle->vfh, &video->video);
v4l2_fh_add(&handle->vfh); v4l2_fh_add(&handle->vfh);