diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-06-03 17:49:41 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-17 16:21:06 -0300 |
commit | 186612342500b0af8498d7c8bc6b3ac32ac7a48e (patch) | |
tree | b7503da621a6629f52e162596de888d3f0b11d87 /drivers/staging | |
parent | 2b44ac9e84d583c0e25b22bd0809d9ddf0c54f6f (diff) | |
download | linux-186612342500b0af8498d7c8bc6b3ac32ac7a48e.tar.gz linux-186612342500b0af8498d7c8bc6b3ac32ac7a48e.tar.bz2 linux-186612342500b0af8498d7c8bc6b3ac32ac7a48e.zip |
[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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/omap4iss/iss_video.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/staging/media/omap4iss/iss_video.c index 56942dffe2ff..61b974ac4c13 100644 --- a/drivers/staging/media/omap4iss/iss_video.c +++ b/drivers/staging/media/omap4iss/iss_video.c @@ -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); |