upstream: [media] v4l2-subdev: Allow 32-bit compat ioctls
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 10 Feb 2014 11:08:44 +0000 (08:08 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:56:09 +0000 (11:56 +0900)
commit7a07b64a38a312171083c00caa5f3cd87a7a368e
treed4f03dbb33d94db77a044cf527c0f8575987133e
parentdc4358c2136b7b8a80b213e232f216cd248a4222
upstream: [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>
Conflicts:
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
drivers/media/v4l2-core/v4l2-compat-ioctl32.c
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h