[media] media: Unify IOCTL handler calling
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 3 May 2016 21:35:12 +0000 (18:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 13:23:04 +0000 (10:23 -0300)
commit6975264c4c6c00c88099b8927bac52838507cea9
tree0c7662f400dfafe71974b170d7f65f22aea4bf31
parentcf439d5f4d609b296cabf9a896fcf571b57e260b
[media] media: Unify IOCTL handler calling

Each IOCTL handler can be listed in an array instead of using a large and
cumbersome switch. Do that.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/media-device.c