summaryrefslogtreecommitdiff
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-21 16:37:42 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-19 20:24:28 +0300
commit0e43734d4c46e156785bb1d2acc5b3c10b7d5dd5 (patch)
tree803de4b1d91f85ebe8ab9153bdad7a26f7a1c1b4 /include/media/media-entity.h
parentea6c7e34f3b28e165988aa7391310752969842e8 (diff)
downloadlinux-0e43734d4c46e156785bb1d2acc5b3c10b7d5dd5.tar.xz
media: v4l2-subdev: add release() internal op
If the subdevice created a device node, then the v4l2_subdev cannot be freed until the last user of the device node closes it. This means that we need a release() callback in v4l2_subdev_internal_ops that is called from the video_device release function so the subdevice driver can postpone freeing memory until the that callback is called. If no video device node was created then the release callback can be called immediately when the subdev is unregistered. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media/media-entity.h')
0 files changed, 0 insertions, 0 deletions