v4l: Make v4l2_subdev inherit from media_entity
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 9 Dec 2009 11:40:08 +0000 (12:40 +0100)
committerJason Kridner <jkridner@beagleboard.org>
Thu, 10 Mar 2011 23:38:22 +0000 (17:38 -0600)
commit7004ebd683dcdc186c2da809bdf976219c12cfb3
treec205bfc72482b2b0d5e7a8c252b916a0839791a8
parent10740a4789e07195e0639d2d99a612ae5f794976
v4l: Make v4l2_subdev inherit from media_entity

V4L2 subdevices are media entities. As such they need to inherit from
(include) the media_entity structure.

When registering/unregistering the subdevice, the media entity is
automatically registered/unregistered. The entity is acquired on device
open and released on device close.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Documentation/video4linux/v4l2-framework.txt
drivers/media/video/v4l2-device.c
drivers/media/video/v4l2-subdev.c
include/media/v4l2-subdev.h