[media] v4l: omap4iss: Add module debug parameter
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 3 Jun 2014 20:49:41 +0000 (17:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Jul 2014 19:21:06 +0000 (16:21 -0300)
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>
drivers/staging/media/omap4iss/iss_video.c

index 56942dffe2ffe4c2babfa9fbc9bcf154f8126a40..61b974ac4c13b2d89d43a87cfc23bc43d2445873 100644 (file)
@@ -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);