]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-subdev: Allow 32-bit compat ioctls
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 10 Feb 2014 11:08:44 +0000 (08:08 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 24 Feb 2014 13:57:14 +0000 (10:57 -0300)
commit462caf27a880a0e3b349d69c8a3b01aac3f6047f
tree610feb6fafb2f7a567f85627ef666c4b83804d02
parent419be0b103d88030b41f68aa187f056c6a5e2c2a
[media] v4l2-subdev: Allow 32-bit compat ioctls

Add support for 32-bit ioctls with v4l-subdev device nodes.

Rather than keep adding new ioctls to the list in v4l2-compat-ioctl32.c, just check
if the ioctl is a non-private V4L2 ioctl and if so, call the conversion code.

We keep forgetting to add new ioctls, so this is a more robust solution.

In addition extend the subdev API with support for a compat32 function to
convert custom v4l-subdev ioctls.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h