[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)
commitf0beea8f46142ea7abd7ed3f44fd0967c603fae0
tree66b74b8b01eeb051faabeb8bb94ce64c1dbfb3e4
parent7cd5a16b22af7dc92190a60f336b6854a6fcb99d
[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