[media] v4l2-dev: improve ioctl validity checks
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 14 Sep 2012 10:03:35 +0000 (07:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 26 Sep 2012 17:41:54 +0000 (14:41 -0300)
commit4b20259fa642d6f7a2dabef0b3adc14ca9dadbde
treee508b4e27cb2d82c5e68ffd1ff5a184725b5944b
parent954f340fc7f2fa2ae8812670da49e828d2686d8e
[media] v4l2-dev: improve ioctl validity checks

The ioctl validity checks have been improved and now take vfl_type
and vfl_dir into account.
During the 2012 Media Workshop it was decided that these improved
v4l2 core checks should be added as they simplified drivers and
made drivers behave consistently.

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