[media] v4l2-dev.c: fix g_parm regression in determine_valid_ioctls()
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 25 May 2012 14:58:06 +0000 (11:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 21:11:40 +0000 (18:11 -0300)
commita5ee6e41b2dee2aae2930278ba070ea8385db040
treec0f313c2311862cf1d5e68a17a0b59df64421b52
parent0c142c86991551b8b9675ab72609f7a29ee2e1e3
[media] v4l2-dev.c: fix g_parm regression in determine_valid_ioctls()

The field current_norm does not have to be set for g_parm to be a valid
ioctl. Remove that check, but add a check whether this is a video node
instead as g_parm only makes sense for those nodes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c