Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);