From: Laurent Pinchart Date: Mon, 12 Jul 2010 14:09:41 +0000 (-0300) Subject: [media] v4l: Share code between video_usercopy and video_ioctl2 X-Git-Tag: v2.6.39-rc1~86^2~190 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc0a80798576f80ca10b3f6c9c7097f12fd1d64e;p=pandora-kernel.git [media] v4l: Share code between video_usercopy and video_ioctl2 The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create a __video_usercopy function that implements the core of video_usercopy and video_ioctl2, and call that function from both. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed