[media] v4l2-ioctl.c: introduce INFO_FL_CLEAR to replace switch
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Jun 2012 11:55:31 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 20:17:30 +0000 (17:17 -0300)
commit27cd2aba172dffb7819b9ca49a6a8acdbb8cf7e5
treef72347600e5fe939bfd07462ea41ab38ffb1e1a4
parent4839e6c2ac7c1a25d285b66240e702bb9b5fdcbf
[media] v4l2-ioctl.c: introduce INFO_FL_CLEAR to replace switch

The switch statement that determines how much data should be copied from
userspace is replaced by a table lookup.

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