Commit 9de436cf authored by Frank Zago's avatar Frank Zago Committed by Mauro Carvalho Chehab

V4L/DVB (9077): gspca: Set the right V4L2_DEBUG values in the main driver.

Signed-off-by: default avatarFrank Zago <frank@zago.net>
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 117a45a8
...@@ -843,9 +843,11 @@ static int dev_open(struct inode *inode, struct file *file) ...@@ -843,9 +843,11 @@ static int dev_open(struct inode *inode, struct file *file)
#ifdef GSPCA_DEBUG #ifdef GSPCA_DEBUG
/* activate the v4l2 debug */ /* activate the v4l2 debug */
if (gspca_debug & D_V4L2) if (gspca_debug & D_V4L2)
gspca_dev->vdev.debug |= 3; gspca_dev->vdev.debug |= V4L2_DEBUG_IOCTL
| V4L2_DEBUG_IOCTL_ARG;
else else
gspca_dev->vdev.debug &= ~3; gspca_dev->vdev.debug &= ~(V4L2_DEBUG_IOCTL
| V4L2_DEBUG_IOCTL_ARG);
#endif #endif
ret = 0; ret = 0;
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment