aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Jan <s-jan@ti.com>2011-04-15 09:33:07 +0100
committerAndy Green <andy.green@linaro.org>2011-04-15 09:33:07 +0100
commitf5dd5b0e4b636cefaf0623855dc6fd6cd49a62a9 (patch)
tree507690680ec49d09c595c6f78bb17b53914242c1
parent240f4ec307648783d98bee1616cb9258818b735f (diff)
v4l2: omap: pass debug param to v4l2 framework
The omap_vout debug module parameter can be passed to the v4l2 framework. For this, its type has to be extended. Signed-off-by: Sebastien Jan <s-jan@ti.com>
-rw-r--r--drivers/media/video/omap/omap_vout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index 029a4babfd6..de08878f73c 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -125,8 +125,8 @@ module_param(vid2_static_vrfb_alloc, bool, S_IRUGO);
MODULE_PARM_DESC(vid2_static_vrfb_alloc,
"Static allocation of the VRFB buffer for video2 device");
-module_param(debug, bool, S_IRUGO);
-MODULE_PARM_DESC(debug, "Debug level (0-1)");
+module_param(debug, int, S_IRUGO);
+MODULE_PARM_DESC(debug, "Debug level");
/* list of image formats supported by OMAP2 video pipelines */
const static struct v4l2_fmtdesc omap_formats[] = {
@@ -2235,6 +2235,8 @@ static int __init omap_vout_setup_video_data(struct omap_vout_device *vout)
mutex_init(&vout->lock);
vfd->minor = -1;
+ vfd->debug = debug;
+
return 0;
}