]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: Add custom compat_ioctl32 operation
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 18 Dec 2011 23:41:19 +0000 (20:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 17:06:12 +0000 (14:06 -0300)
commit44cf3b99d7592cf8e4f266a2c5f54a13aab2f2c5
tree2e1a6bab9e8d9c393c6a2af528bbe0bc0a91e215
parentc66ef4c5ede564f062fbc8f16ef2e3c28dda583a
[media] v4l: Add custom compat_ioctl32 operation

Drivers implementing custom ioctls need to handle 32-bit/64-bit
compatibility themselves. Provide them with a way to do so.

To avoid circular module dependencies, merge the v4l2-compat-ioctl32
module into videodev. There is no point in keeping them separate, as the
v4l2_compat_ioctl32() function is required by videodev if CONFIG_COMPAT
is set anyway.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/Makefile
drivers/media/video/v4l2-compat-ioctl32.c
include/media/v4l2-dev.h