]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 8 Jan 2011 12:36:04 +0000 (09:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 19:37:57 +0000 (16:37 -0300)
commit4329a22237d64f730ab74c2e21c06f075577de57
tree2e2cfa9f87b584774a7dc496ec6b46431bd7ce56
parentd4091662b51591874150b91087ed3c34e2051b20
[media] v4l2-fh: add v4l2_fh_open and v4l2_fh_release helper functions

Add two new functions: v4l2_fh_open allocates and initializes a struct v4l2_fh
based on a struct file pointer and v4l2_fh_release releases and frees a struct
v4l2_fh.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-fh.c
include/media/v4l2-fh.h