aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorFrank Zago <frank@zago.net>2008-09-15 04:20:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:37:11 -0400
commit9de436cfc4e966652f8804f0dda8d338ca7fe89c (patch)
tree9a264809f550e89bd3926fc6f8e0f50448241383 /drivers/media/video/gspca/gspca.c
parent117a45a85e8c250a45674f81aadd68d77281e57b (diff)
V4L/DVB (9077): gspca: Set the right V4L2_DEBUG values in the main driver.
Signed-off-by: Frank Zago <frank@zago.net> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 58761d9809f7..e4c998965ab2 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -843,9 +843,11 @@ static int dev_open(struct inode *inode, struct file *file)
843#ifdef GSPCA_DEBUG 843#ifdef GSPCA_DEBUG
844 /* activate the v4l2 debug */ 844 /* activate the v4l2 debug */
845 if (gspca_debug & D_V4L2) 845 if (gspca_debug & D_V4L2)
846 gspca_dev->vdev.debug |= 3; 846 gspca_dev->vdev.debug |= V4L2_DEBUG_IOCTL
847 | V4L2_DEBUG_IOCTL_ARG;
847 else 848 else
848 gspca_dev->vdev.debug &= ~3; 849 gspca_dev->vdev.debug &= ~(V4L2_DEBUG_IOCTL
850 | V4L2_DEBUG_IOCTL_ARG);
849#endif 851#endif
850 ret = 0; 852 ret = 0;
851out: 853out: