]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: subdev: Add new file operations
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 1 Aug 2010 22:05:09 +0000 (19:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:53:27 +0000 (04:53 -0300)
commitba444a79649cca23df92ccb6007ebeaa2a472f9a
tree66b74b8b01eeb051faabeb8bb94ce64c1dbfb3e4
parentbcb1ff42c93f2d8599671ff71d945d3014df9bd9
[media] v4l: subdev: Add new file operations

V4L2 sub-devices store pad formats and crop settings in the file handle.
To let drivers initialize those settings properly, add an open operation
that is called when the subdev is opened as well as a corresponding
close operation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-subdev.c
include/media/v4l2-subdev.h