[media] v4l2-pci-skeleton: fix typo
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 23 Apr 2014 14:32:11 +0000 (11:32 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 23 May 2014 15:17:37 +0000 (12:17 -0300)
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Documentation/video4linux/v4l2-pci-skeleton.c

index 53dd346586f6cec197a760b0ad1d82d7c9820305..46904fe49609372eee7b6e16474fc2ac5fa1f5c1 100644 (file)
@@ -174,7 +174,7 @@ static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *fmt,
                 * You cannot use read() with FIELD_ALTERNATE since the field
                 * information (TOP/BOTTOM) cannot be passed back to the user.
                 */
-               if (vb2_fileio_is_active(q))
+               if (vb2_fileio_is_active(vq))
                        return -EINVAL;
                skel->field = V4L2_FIELD_TOP;
        }