diff options
author | Sebastien Jan <s-jan@ti.com> | 2011-05-03 12:18:13 +0800 |
---|---|---|
committer | Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> | 2011-05-16 22:42:11 -0300 |
commit | d00cf79c8a4691c0406a2db57643db856b861fc0 (patch) | |
tree | 3fe80c1855f90727ac458e9bc66bfe488099225b | |
parent | 83b5e39b4d67d799be52e9f4f90c07986929fecd (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.c | 6 |
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 8cd08d1b350..d75127c1e4e 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[] = { @@ -2241,6 +2241,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; } |