v4l: subdev: Add a new file operations class
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 1 Aug 2010 22:05:09 +0000 (00:05 +0200)
committerJason Kridner <jkridner@beagleboard.org>
Thu, 10 Mar 2011 23:38:25 +0000 (17:38 -0600)
commit86a5f35b48d357c42b88f4312f904f0b8cddcada
tree68205595160fa389f21f83d2a429d37df0dbb403
parentc98ed841e8bcd4a4755201c7211786207a929269
v4l: subdev: Add a new file operations class

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

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/video/v4l2-subdev.c
include/media/v4l2-subdev.h